`
`
Estou to mando esse erro já mudei o arquivo yml conforme foi recomendado em post semelhantes ao meu, poŕem continua não resolvendo.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2022-06-21 11:11:29.745 ERROR 82690 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/home/sillasroberto/Documentos/Estudos%20Devtools/forum/target/classes/data.sql]: insert into curso(id, nome, categoria) values(1,'teste', 'teste'); nested exception is org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "CURSO" not found (this database is empty); SQL statement: insert into curso(id, nome, categoria) values(1,'teste', 'teste') [42104-212]
Arquivo yml:
spring: datasource: driverClassName: org.h2.Driver url: jdbc:h2:mem:forum username: sa password: jpa: defer-datasource-initialization: true database-platform: org.hibernate.dialect.H2Dialect properties: hibernate: show_sql: true format_sql: true