2016年2月23日
摘要: 2016-02-23 14:06:27,416 [http-bio-8080-exec-1] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instanc 阅读全文
posted @ 2016-02-23 14:15 洛易 阅读(802) 评论(0) 推荐(0) 编辑
摘要: java.lang.IllegalArgumentException: Attribute value must not be null at org.springframework.util.Assert.notNull(Assert.java:112) at org.springframewor 阅读全文
posted @ 2016-02-23 14:06 洛易 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: 我们可以在需要访问 Session 属性的 controller 上加上 @SessionAttributes,然后在 action 需要的 User 参数上加上 @ModelAttribute,并保证两者的属性名称一致。SpringMVC 就会自动将 @SessionAttributes 定义的属 阅读全文
posted @ 2016-02-23 10:10 洛易 阅读(2247) 评论(0) 推荐(1) 编辑
摘要: @Controller • @Service • @Autowired • @RequestMapping • @RequestParam • @ModelAttribute • @Cacheable • @CacheFlush • @Resource • @PostConstruct • @Pre 阅读全文
posted @ 2016-02-23 10:06 洛易 阅读(245) 评论(0) 推荐(0) 编辑