随笔 - 54  文章 - 0  评论 - 2  阅读 - 65713
08 2019 档案
spring-data-jpa中findById()的使用
摘要:springboot 2.x 版本后,较之前的版本在此方法的使用上有差: 如果找到匹配的id数据,则赋值给foo;否则则将括号中的对象赋值给foo。 阅读全文
posted @ 2019-08-22 16:15 kongieg 阅读(12905) 评论(0) 推荐(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) 推荐(0) 编辑
正则
摘要:字面量 var reg = / \bis\b /g; 匹配语句中为is的单词,g表示为全文匹配 eg: 'This is a boy.That is a dog'.replace(reg,'IS'); 构造函数 var reg = new RegExp('\\bis\\b','g'); eg: 'T 阅读全文
posted @ 2019-08-14 10:41 kongieg 阅读(184) 评论(0) 推荐(0) 编辑
Mybatis从oracle数据库取Date类型数据以json发送前台为数字串
摘要:在相应的实体类的Date类型字段上添加注解: 阅读全文
posted @ 2019-08-10 16:15 kongieg 阅读(538) 评论(0) 推荐(0) 编辑
could not autowired.no beans of ' ' type found
摘要:在service实现类对dao层的mapper进行装配时显示未发现bean! 解决方法:在dao层的 *mapper接口上添加@Repository注解 阅读全文
posted @ 2019-08-08 15:50 kongieg 阅读(2040) 评论(0) 推荐(0) 编辑
Thymeleaf遍历list和map
摘要:遍历list: Controller: html: 遍历Map: html: 阅读全文
posted @ 2019-08-08 13:14 kongieg 阅读(15259) 评论(0) 推荐(3) 编辑
spring-boot访问不到jsp
摘要:首先在application.properties中设置好访问界面的前后缀 在src | main 新建文件夹webapp,在webapp中新建WEB-INF | jsp文件夹,在jsp文件夹中新建*.jsp文件. 项目目录结构: controller类: 此时可尝试在浏览器中进行访问:localh 阅读全文
posted @ 2019-08-07 16:58 kongieg 阅读(1348) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示