<?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:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- <bean id="ds" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"></property>
<property name="url" value="jdbc:microsoft:sqlserver://HOST:1433;DatabaseName=DATABASE"></property>
<property name="username" value="sa"></property>
<property name="password" value="syntel123$"></property>
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="ds"></property>
</bean>-->
<bean id="lpb" class="login.LoginPojo" scope="singleton" autowire="byName">
</bean>
<bean id="rpb" class="register.RegisterPojo" scope="singleton" autowire="byName"></bean>
<bean id="rdao" class="register.RegisterDao"></bean>
</beans>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- <bean id="ds" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"></property>
<property name="url" value="jdbc:microsoft:sqlserver://HOST:1433;DatabaseName=DATABASE"></property>
<property name="username" value="sa"></property>
<property name="password" value="syntel123$"></property>
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="ds"></property>
</bean>-->
<bean id="lpb" class="login.LoginPojo" scope="singleton" autowire="byName">
</bean>
<bean id="rpb" class="register.RegisterPojo" scope="singleton" autowire="byName"></bean>
<bean id="rdao" class="register.RegisterDao"></bean>
</beans>
No comments:
Post a Comment