摘要:
springBoot整合jpa,运行项目报错: java.sql.SQLSyntaxErrorException: Table 'demo.hibernate_sequence' doesn't exist 解决办法: 延伸阅读 @GeneratedValue:主键的产生策略,通过strategy属 阅读全文
posted @ 2019-05-14 15:10
cqrunnerxjzh
阅读(2815)
评论(0)
推荐(0)
摘要:
Spring Boot整合jpa,启动项目报错: Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.example.demo.domain.DeptInfo 解决办法: 检查实体类的 @Entit 阅读全文
posted @ 2019-05-14 14:55
cqrunnerxjzh
阅读(3277)
评论(0)
推荐(0)
摘要:
调试代码时,发现错误: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically 阅读全文
posted @ 2019-05-14 14:15
cqrunnerxjzh
阅读(3490)
评论(0)
推荐(0)
摘要:
传统的写法,要写一串串的get()、set()方法等等 现引入Lombok pom.xml引入 —————————————————————————————————————————— —————————————————————————————————————————— 引入后发现,在实体类上面使用@D 阅读全文
posted @ 2019-05-14 11:42
cqrunnerxjzh
阅读(8414)
评论(0)
推荐(2)
摘要:
application.yml配置: pom.xml配置 读取yml的内容: 运行效果: 实体类: dao层: 测试: controller层: 运行效果:http://localhost:8080/getDept 以上操作中,遇到的报错,解决办法如下: 解决引入jpa报错 Lombok使用 com 阅读全文
posted @ 2019-05-14 11:21
cqrunnerxjzh
阅读(307)
评论(0)
推荐(0)
摘要:
Spring Boot 引入spring-boot-starter-data-jpa报错 解决:需要把pom文件重新加载一下 pom.xml 右击——Maven——Reimport 大功告成! 阅读全文
posted @ 2019-05-14 11:01
cqrunnerxjzh
阅读(2358)
评论(1)
推荐(0)
摘要:
第一步:打开设置 第二步:账号——选择账号——高级 第三步:信纸设置——点击需要的信纸——确定 大功告成! 阅读全文
posted @ 2019-05-14 10:52
cqrunnerxjzh
阅读(2595)
评论(0)
推荐(0)

浙公网安备 33010602011771号