我的 SpringBoot 应用程序编译无法创建数据库。
引起:java.sql.SQLSyntaxErrorException:你的SQL语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以获取在第 1 行的“读取位、发布日期日期、主键 (id)) engine=InnoDB”附近使用的正确语法
根据堆栈,它来自我的“releaseDate”日期或我的类“Book”中的“read”布尔值。我认为由于错误的注释,它在 Jpa 上失败了。(这是相当广泛的假设,如果我错了,请纠正我)
这是堆栈
2019-01-21 14:29:21.482 INFO 5472 --- [ main] c.e.S.restapi.postgresql.Application : Starting Application on MSI with PID 5472 (D:\Documents\Coding\Grokonez\clientVue_appRestFulSpringBoot_dataPostGre\SpringBootRestPostgreSQL\target\classes started by Charles LeMagnifique in D:\Documents\Coding\Grokonez\clientVue_appRestFulSpringBoot_dataPostGre\SpringBootRestPostgreSQL)
2019-01-21 14:29:21.486 INFO 5472 --- [ main] c.e.S.restapi.postgresql.Application : No active profile set, falling back to default profiles: default
2019-01-21 14:29:22.216 INFO 5472 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-01-21 14:29:22.280 INFO 5472 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate …Run Code Online (Sandbox Code Playgroud)