2016年5月27日

摘要: 先来两个连接: Spring3.2新注解@ControllerAdvice Spring 注解学习手札(八)补遗——@ExceptionHandler @Controller Class中如果有@ExceptionHandler method,那么该Controller类中的所有异常都会调用该方法。 阅读全文
posted @ 2016-05-27 11:15 LarryZeal 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 看Spring in action的时候看过p标签,可惜这东西不用就忘。 p标签是为了简化setter的注入而引入的。 用法: 示例Bean: XML配置: 测试代码: 测试结果: 阅读全文
posted @ 2016-05-27 10:18 LarryZeal 阅读(567) 评论(0) 推荐(0) 编辑

导航