<Spring> 정리
by BFine<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>
org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<beans:bean name="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" >
<beans:property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></beans:property>
<beans:property name="url" value="jdbc:oracle:thin:@localhost:1521:xe"></beans:property>
<beans:property name="username" value="hr"></beans:property>
<beans:property name="password" value="hr"></beans:property>
</beans:bean>
<beans:bean name="template" class="org.springframework.jdbc.core.JdbcTemplate" >
<beans:property name="dataSource" ref="dataSource"></beans:property>
</beans:bean>
<!-- spring-jdbc -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<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>
'공부(2018~2019) - 스킨변경전 > Spring' 카테고리의 다른 글
<Spring> 3. 글쓰기 구현-Spring 게시판구축하기 (0) | 2018.03.20 |
---|---|
<Spring> 2. 글목록 구현-Spring 게시판구축하기 (0) | 2018.03.17 |
<Spring> 1. 개요-Spring 게시판구축하기 (0) | 2018.03.16 |
<Spring> Mybatis 설정 (0) | 2018.03.16 |
<Spring> JdbcTemplate 설정 (0) | 2018.03.16 |
블로그의 정보
57개월 BackEnd
BFine