Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
- <context:component-scan base-package = "mvc"/>
- <bean class = "org.springframework.web.servlet.view.InternalResourceViewResolver">
- <property name = "prefix" value = "/WEB-INF/pages/" />
- <property name = "suffix" value = ".jsp" />
- </bean>
- <bean id = "dataSource" class = "org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name = "driverClassName" value = "oracle.jdbc.driver.OracleDriver" />
- <property name = "url" value = "jdbc:oracle:thin:@localhost:1521:XE" />
- <property name = "username" value = ""/>
- <property name = "password" value = ""/>
- </bean>
- <bean id = "jdbcTemplate" class = "org.springframework.jdbc.core.JdbcTemplate">
- <property name = "dataSource" ref = "dataSource"/>
- </bean>
- <bean id = "dao" class = "mvc.dao.DAOImpl">
- <property name = "template" ref = "jdbcTemplate"/>
- </bean>
- </beans>
Add Comment
Please, Sign In to add comment