![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 81
iteye_5562
这个作者很懒,什么都没留下…
展开
-
Spring笔记
Spring MVC 设置Response的charset @RequestMapping(value = "/login", produces = "text/plain;charset=gb2312") @ResponseBody public String login(HttpServletRequest req, HttpServletResponse resp) { ...原创 2014-04-19 10:09:55 · 75 阅读 · 0 评论 -
Spring备忘
spring - 统一的异常处理 @Controller public class BaseController { protected final static Logger logger = LoggerFactory .getLogger("controller"); @ResponseBody @ExceptionHa...原创 2014-11-05 16:01:40 · 70 阅读 · 0 评论 -
<转>Spring AOP根据JdbcTemplate方法名动态设置数据源
转载: Spring AOP根据JdbcTemplate方法名动态设置数据源 http://blog.csdn.net/yubaoma2014/article/details/12427885作者: yubaoma2014 有删节. 目的: 1. 配置多个数据源 2. 根据不同的数据源执行不同的数据操作方法 3. 事务管理? 多数据源配置 <...原创 2014-11-12 11:22:41 · 525 阅读 · 0 评论 -
Spring Interceptor拦截器流程
Spring拦截器流程 示例 - 登陆验证 编写Annotation, 用于标识不需要进行登陆验证的请求方法 @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface LoginNotNeed { } 编写Interceptor public clas...原创 2014-12-10 10:49:43 · 117 阅读 · 0 评论 -
Spring全注解project示例 (无web.xml配置)
使用@Configuration注解配置类,实现spring MVC无web.xml配置. 1. project环境 IDE: eclipse JDK: 1.7 Server: tomcat7.0 2. 使用maven创建webapp, project Web Module 3.0 3. project的pom文件 <proj...原创 2015-03-16 15:26:23 · 177 阅读 · 0 评论