2018年7月29日

摘要: 转载自:https://www.cnblogs.com/xiaoluo501395377/p/3377604.html 在本篇随笔里将会分析一下hibernate的缓存机制,包括一级缓存(session级别)、二级缓存(sessionFactory级别)以及查询缓存,当然还要讨论下我们的N+1的问题 阅读全文
posted @ 2018-07-29 22:02 卖肾割阑尾 阅读(76) 评论(0) 推荐(0)
摘要: JDBC事务 String URL="jdbc:sqlserver://localhost:1433;databaseName=test2"; String USER="sa"; String PASSWORD="sapassword"; try { Class.forName("com.micro 阅读全文
posted @ 2018-07-29 15:20 卖肾割阑尾 阅读(131) 评论(0) 推荐(0)
摘要: 上一篇是简单整合web和Spring, 这一篇是整合hibernate: 连接池c3p0: spring5.0, hibernate5.0 jars: web.xml,增加高亮部分,不然会报 Could not obtain transaction-synchronized Session for 阅读全文
posted @ 2018-07-29 15:00 卖肾割阑尾 阅读(96) 评论(0) 推荐(0)

导航