Advertisement
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.xsd
- http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/beans">
- <context:annotation-config />
- <context:component-scan base-package="os.properties.controller" />
- <context:component-scan base-package="os.properties.service" />
- <context:component-scan base-package="os.properties.dao"/>
- <mvc:annotation-driven />
- <mvc:view-controller path="/index" view-name="index" />
- <mvc:view-controller path="/protected" view-name="protected" />
- <bean id="osPropertiesController" class="os.properties.controller.OsPropertiesController"/>
- <bean id="jspViewResolver"
- class="org.springframework.web.servlet.view.InternalResourceViewResolver">
- <property name="viewClass"
- value="org.springframework.web.servlet.view.JstlView" />
- <property name="prefix" value="/WEB-INF/jsp/" />
- <property name="suffix" value=".jsp" />
- </bean>
- <bean id="userClass" class="java.lang.Class"
- factory-method="forName">
- <constructor-arg value="os.properties.entities.HardDrive"/>
- </bean>
- <!--bean id="dataSource"
- class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
- p:driverClassName="${jdbc.driverClassName}"
- p:url="${jdbc.databaseurl}" p:username="${jdbc.username}"
- p:password="${jdbc.password}" /-->
- <!-- >bean id="sessionFactory"
- class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
- <property name="dataSource" ref="dataSource" />
- <property name="configLocation">
- <value>classpath:hibernate.cfg.xml</value>
- </property>
- <property name="configurationClass">
- <value>org.hibernate.cfg.AnnotationConfiguration</value>
- </property>
- <property name="hibernateProperties">
- <props>
- <prop key="hibernate.dialect">${jdbc.dialect}</prop>
- <prop key="hibernate.show_sql">true</prop>
- </props>
- </property>
- </bean-->
- <bean id="sessionFactory"
- class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
- </bean>
- <bean id="osPropertiesService" class="os.properties.service.OSPropertiesServiceImpl" autowire="byType">
- <property name="sessionFactory" ref="sessionFactory"/>
- </bean>
- <bean id="hardDriveDao" class="os.properties.dao.HardDriveDAOImpl"/>
- <bean id="hardDriveDaoImpl" class="os.properties.dao.AbstractHardDriveDAOImpl"/>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement