Advertisement
Guest User

Untitled

a guest
Mar 28th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.27 KB | None | 0 0
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2.       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.       xmlns:context="http://www.springframework.org/schema/context"
  4.       xsi:schemaLocation="http://www.springframework.org/schema/beans
  5.        http://www.springframework.org/schema/beans/spring-beans.xsd
  6.        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  7.  
  8.     <context:component-scan base-package="com.springapp.mvc"/>
  9.  
  10.     <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  11.         <property name="prefix" value="/WEB-INF/pages/"/>
  12.         <property name="suffix" value=".jsp"/>
  13.     </bean>
  14.  
  15.  
  16.     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  17.         <property name="driverClassName" value="com.mysql.jdbc.Driver" />
  18.         <property name="url" value="jdbc:oracle:thin:@//admlab2-main.cs.put.poznan.pl:1521/dblab01.cs.put.poznan.pl" />
  19.         <property name="username" value="inf117242" />
  20.         <property name="password" value="dupadupa" />
  21.     </bean>
  22.  
  23.     <bean id="customerDAO" class="com.springapp.mvc.JdbcCustomerDAO">
  24.         <property name="dataSource" ref="dataSource" />
  25.     </bean>
  26.  
  27. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement