摘要: dao层不进入实现类,因为orm-context.xml配置文件中 扫描的是接口而不是xml配置文件,修改为 搞定!也就是说mybatis只接管数据库管理,即只扫描mybatis的xml文件,接口和实现类一律由spring管理, 因此上图中的namespace不可以是接口名,如果是接口名,mybat 阅读全文
posted @ 2017-09-11 20:14 蒲公草 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 配置回滚标签@Transactional的方法不能用,按照http://blog.csdn.net/will_awoke/article/details/12002705中的springMVC文件配置方法,对dispatcher.xml和application.xml配置文件做区分, Spring容 阅读全文
posted @ 2017-09-11 18:37 蒲公草 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 练习搭建maven web项目,用尝试用junit测试时一直报Class<SpringJUnit4ClassRunner> cannot be resolved to a type错,第一次报的原因是pom.xml中没有填加 <dependency> <groupId>org.springframe 阅读全文
posted @ 2017-08-19 12:06 蒲公草 阅读(2817) 评论(0) 推荐(0) 编辑
摘要: catalina报memory leak错误,解决办法:用./stop.sh停止tomcat,重新启动 html maxlenth属性不区分中英文字符 阅读全文
posted @ 2017-06-06 16:38 蒲公草 阅读(243) 评论(0) 推荐(0) 编辑