2017年7月25日

CharacterEncodingFilter这个spring的过滤器

摘要: org.springframework.web.filter.CharacterEncodingFilter 对请求于响应的编码进行过滤,半路出家的和尚总是对什么都感觉到好奇,都想记录下来(😂),我好奇的是过滤器也可以设置mapping,下面看两个配置的案例: 案例1(不使用mapping) 案例 阅读全文

posted @ 2017-07-25 15:31 blbl9527 阅读(86) 评论(0) 推荐(0) 编辑

webAppRootKey

摘要: webAppRootKey来自哪? 在 org.springframework.web.util.WebAppRootListener 这个spring的监听器通过webAppRootKey来注入项目路径; 在org.springframework.web.util.Log4jConfigListe 阅读全文

posted @ 2017-07-25 15:13 blbl9527 阅读(176) 评论(0) 推荐(0) 编辑

spring的一些annotation

摘要: 通过使用spring的注解可以把一些类通过spring容器管理这些类 1. @controller 控制器(注入服务) 2. @service 服务(注入dao) 3. @repository dao(实现dao访问) 4. @component (把pojo注册到spring容器中,相当于配置文件 阅读全文

posted @ 2017-07-25 10:58 blbl9527 阅读(195) 评论(0) 推荐(0) 编辑

导航


github sina微博 FB