spring
晴_
对各种IT知识感兴趣
展开
-
spring系列之@Configuration注解、@Bean注解以及自动扫描注解@componentScan
主要讲解:@configuration的作用及使用@bean的作用及使用@componentScan和@configuration的的结合使用原创 2017-05-19 14:26:10 · 2788 阅读 · 0 评论 -
spring获取request对象的几种方式
第一种,最简单的方式,使用注解:@Autowiredprivate HttpServletRequest request;第二种,web.xml中配置一个监听器。<listener> <listener-class> org.springframework.web.context.request.RequestContextListener原创 2017-05-19 15:07:51 · 1671 阅读 · 0 评论