일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- cross parameter
- 코드스피츠
- cache-control
- 지수반등
- 스프링
- jsr303
- 브로틀리
- 알고리즘
- 알게뭐냐
- LastModified
- 랜선아미안해
- brotli
- jsr380
- 지뢰찾기
- kotliln
- Spring
- Kotlin
- 이렇게살아야되나자괴감이
- 리얼월드HTTP
- i18n
- HTTP
- 워드프레스
- 클래스레벨밸리데이션
- 개미수열
- etag
- Today
- Total
취미개발 블로그와 마음수양
web.xml 스프링3입문 본문
<!-- 01. Config about Put which DI Container in Web Container -->
<!-- I think this is for applicationContext.xml -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/META-INF/spring/beans-biz.xml
</param-value>
</context-param>
<!-- 02. Write DI container in Web Container -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 03. DispatcherServlet -->
<servlet>
<servlet-name>dispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/META-INF/spring/beans-webmvc.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- 04. DispatcherServlet Path Config -->
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- 05. Just Reading -->
<context-param>
<param-name>defaultHtmlEscape</param-name>
<param-value>true</param-value>
</context-param>
<!-- 06. Encoding Config -->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
'FrameWork_ETC > Spring' 카테고리의 다른 글
스프링 회원가입 페이스북 로그인 (2) - 로그인 (0) | 2014.11.25 |
---|---|
스프링 페이스북 회원가입 로그인 - (1) (0) | 2014.11.20 |
DataSource 트랜잭션 매니져 (0) | 2014.08.03 |
스프링 properties 읽어오기 (0) | 2014.08.03 |
범용 데이터 액세스 제외 (0) | 2014.08.03 |