摘要: @RequestMapping("/index") public ModelAndView gotoIdex(){ ModelAndView mav = new ModelAndView(); mav.setViewName("/modules/front/in... 阅读全文
posted @ 2014-12-03 13:38 zhumingjun2009 阅读(199) 评论(0) 推荐(0)
摘要: public boolean exportDataToCSV(List dataList, LinkedHashMap showTitle, String fileName, HttpServletRequest request, HttpServletResponse response) ... 阅读全文
posted @ 2014-11-25 14:19 zhumingjun2009 阅读(353) 评论(0) 推荐(0)
摘要: 在主容器中(applicationContext.xml),将Controller的注解排除掉 而在springMVC配置文件中将Service注解给去掉 或者仅仅扫描controller组件:因为spring的context是父子容器,所以会产生冲突,Controller会先进行扫描装配,而此时的Service还没有进行事务的增强处理,得到的将是原样的Service(没有经过事务加强处理,故而没有事务处理能力) ,最后才是applicationContext.xml中的扫描配置进行事务处理。 阅读全文
posted @ 2013-08-06 21:29 zhumingjun2009 阅读(159) 评论(0) 推荐(0)