
数据库
我是小li同学
某知名Java大佬!
展开
-
mybatis和hibernate的优缺点
转自 just1Crazy 1.1 开发上手难度 hibernate的真正掌握(封装的功能和特性非常多)要比Mybatis来得难。 在真正产品级应用上要用Hibernate,不仅对开发人员的要求高,hibernate往往还不适合(多表关联查询等)。 1.2 系统调优、调优方案对比 Hibernate: 制定合理的缓存策略; 尽量使用延迟加载特性; 采用合理的Session管理机...转载 2018-09-20 20:27:59 · 231 阅读 · 0 评论 -
向 数据库中插入数据报错:Servlet.service() for servlet [springmvc] in context with path [/ssmtest] threw excepti
错误 Servlet.service() for servlet [springmvc] in context with path [/ssmtest] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Er...原创 2018-09-29 17:27:19 · 6045 阅读 · 0 评论