spring-data-jpa中findById()的使用
摘要:springboot 2.x 版本后,较之前的版本在此方法的使用上有差: 如果找到匹配的id数据,则赋值给foo;否则则将括号中的对象赋值给foo。
阅读全文
posted @
2019-08-22 16:15
kongieg
阅读(12905)
推荐(2) 编辑
Caused by: java.sql.SQLSyntaxErrorException: Table 'sell.hibernate_sequence' doesn't exist
摘要:数据表: domain: Repository: 测试代码: 报错:Caused by: java.sql.SQLSyntaxErrorException: Table 'sell.hibernate_sequence' doesn't exist 解决:在domain实体类指明主键生成策略,保持数
阅读全文
posted @
2019-08-20 10:18
kongieg
阅读(3239)
推荐(0) 编辑