Biblioteca Java - Blame information for rev 14

Subversion Repositories:
Rev:
Rev Author Line No. Line
14 mihai 1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans:beans xmlns="http://www.springframework.org/schema/mvc"
3             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
4             xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
5             xsi:schemaLocation="http://www.springframework.org/schema/mvc  http://www.springframework.org/schema/mvc/spring-mvc.xsd
6        http://www.springframework.org/schema/beans  http://www.springframework.org/schema/beans/spring-beans.xsd
7        http://www.springframework.org/schema/context  http://www.springframework.org/schema/context/spring-context.xsd
8        http://www.springframework.org/schema/tx  http://www.springframework.org/schema/tx/spring-tx-4.0.xsd ">
9  
10     <!-- DispatcherServlet Context: defines this servlet's request-processing
11        infrastructure -->
12  
13     <!-- Enables the Spring MVC @Controller programming model -->
14     <annotation-driven />
15  
16     <!-- Handles HTTP GET requests for /resources/** by efficiently serving
17        up static resources in the ${webappRoot}/resources directory -->
18     <resources mapping="/resources/**" location="/resources/" />
19  
20     <!-- Resolves views selected for rendering by @Controllers to .jsp resources
21        in the /WEB-INF/views directory -->
22     <beans:bean
23            class="org.springframework.web.servlet.view.InternalResourceViewResolver">
24         <beans:property name="prefix" value="/WEB-INF/views/" />
25         <beans:property name="suffix" value=".jsp" />
26     </beans:bean>
27  
28     <beans:bean id="dataSource"
29         class="org.springframework.jdbc.datasource.DriverManagerDataSource">
30            <beans:property name="driverClassName" value="com.mysql.jdbc.Driver"/>
31            <beans:property name="url" value="jdbc:mysql://localhost:3306/studenti"/>
32            <beans:property name="username" value="root"/>
33            <beans:property name="password" value="root"/>
34         </beans:bean>
35  
36         <!-- Definition for studentJDBCTemplate bean -->
37    <beans:bean id="studentJDBCTemplate"
38      class="hm.spring.web.dao.StudentJDBCTemplate">
39       <beans:property name="dataSource"  ref="dataSource" />    
40    </beans:bean>
41  
42  
43     <context:component-scan base-package="hm.spring.web" />
44  
45  
46 </beans:beans>