You will be fine

<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>

반응형

블로그의 정보

57개월 BackEnd

BFine

활동하기