会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
青砖伴瓦
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2019年8月22日
spring-data-jpa中findById()的使用
摘要: springboot 2.x 版本后,较之前的版本在此方法的使用上有差: 如果找到匹配的id数据,则赋值给foo;否则则将括号中的对象赋值给foo。
阅读全文
posted @ 2019-08-22 16:15 kongieg
阅读(12850)
评论(0)
推荐(2)
编辑
2019年8月20日
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
阅读(3225)
评论(0)
推荐(0)
编辑
2019年8月14日
正则
摘要: 字面量 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
阅读(183)
评论(0)
推荐(0)
编辑
2019年8月10日
Mybatis从oracle数据库取Date类型数据以json发送前台为数字串
摘要: 在相应的实体类的Date类型字段上添加注解:
阅读全文
posted @ 2019-08-10 16:15 kongieg
阅读(531)
评论(0)
推荐(0)
编辑
2019年8月8日
could not autowired.no beans of ' ' type found
摘要: 在service实现类对dao层的mapper进行装配时显示未发现bean! 解决方法:在dao层的 *mapper接口上添加@Repository注解
阅读全文
posted @ 2019-08-08 15:50 kongieg
阅读(2036)
评论(0)
推荐(0)
编辑
Thymeleaf遍历list和map
摘要: 遍历list: Controller: html: 遍历Map: html:
阅读全文
posted @ 2019-08-08 13:14 kongieg
阅读(15243)
评论(0)
推荐(3)
编辑
2019年8月7日
spring-boot访问不到jsp
摘要: 首先在application.properties中设置好访问界面的前后缀 在src | main 新建文件夹webapp,在webapp中新建WEB-INF | jsp文件夹,在jsp文件夹中新建*.jsp文件. 项目目录结构: controller类: 此时可尝试在浏览器中进行访问:localh
阅读全文
posted @ 2019-08-07 16:58 kongieg
阅读(1320)
评论(0)
推荐(1)
编辑
2019年6月25日
事务管理_xml配置aop事务
摘要: 举例a向b转账,通过money总量来查看在转账出现异常时数据能否保持一致性。 db.properties: applicationContext.xml: AccountDaoImpl.java: AccountServiceImpl.java: Mytest.java: 原表数据: 若未配置织入(
阅读全文
posted @ 2019-06-25 14:11 kongieg
阅读(581)
评论(0)
推荐(0)
编辑
2019年6月24日
Eclipse
摘要: 查找方法或类:ctrl+shift+H surround with:alt+shift+S
阅读全文
posted @ 2019-06-24 17:04 kongieg
阅读(146)
评论(0)
推荐(0)
编辑
2019年6月22日
Spring 使用数据库
摘要: 配置方式: BasicDataSource的池配置属性
阅读全文
posted @ 2019-06-22 14:58 kongieg
阅读(169)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页