<?XML version= "1.0" encoding= "UTF-8"?><!DOCTYPE Beans Public "-//spring//dtd bean//en" "Http://www.springframework.org/dtd/spring-beans.dtd "><Beans> <!--System Scheduled Tasks - <BeanID= "Hibernatepropertiesfeishuidj"class= "Org.springframework.beans.factory.config.PropertiesFactoryBean"> < Propertyname= "Properties"> <Props> <!--<prop key= "Hibernate.dialect" >net.sf.hibernate.dialect.SQLServerDialect</prop> - <propKey= "Hibernate.dialect">Net.sf.hibernate.dialect.OracleDialect</prop> <propKey= "Hibernate.show_sql">True</prop> <propKey= "Hibernate.max_fetch_depth">1</prop> </Props> </ Property> </Bean> <BeanID= "Datasourcefeishuidj"class= "Org.springframework.jdbc.datasource.DriverManagerDataSource"> <!--non-tax docking first SQL Server test, the predecessor is Oracle <property name= "Driverclassname" ><value>net.sourceforge.jtds.jdbc.d river</value></property> <property name= "url" ><value>jdbc:jtds:sqlserver:// 127.0.0.1:1433/XZFW_TEST;CHARSET=GBK; selectmethod=cursor</value></property> <property name= "username" ><value>sa</value> </property> <property name= "password" ><value>sa123</value></property> - < Propertyname= "Driverclassname"><value>Oracle.jdbc.driver.OracleDriver</value></ Property> < Propertyname= "url"><value>Jdbc:oracle:thin:@59.231.52.27:1521:orcl</value></ Property> < Propertyname= "username"><value>Syfs_cs</value></ Property> < Propertyname= "Password"><value>1</value></ Property> </Bean> <BeanID= "Sessionfactoryfeishuidj"class= "Org.springframework.orm.hibernate.LocalSessionFactoryBean"> < Propertyname= "DataSource"><refBean= "Datasourcefeishuidj" /></ Property> < Propertyname= "Mappingdirectorylocations"> <List> <value>Web-inf/classes/feishuidj/hbm/domain</value> </List> </ Property> < Propertyname= "Hibernateproperties"><refBean= "Hibernatepropertiesfeishuidj"/></ Property> </Bean> <BeanID= "Hibernatetemplatefeishuidj"class= "Org.springframework.orm.hibernate.HibernateTemplate"> < Propertyname= "Sessionfactory"><refBean= "Sessionfactoryfeishuidj" /></ Property> </Bean> <!--timing Scheduling Control Object - <BeanID= "Feishuidj"class= "Org.springframework.scheduling.quartz.SchedulerFactoryBean"> < Propertyname= "Triggers"> <List> <!--non-tax data docking - <refLocal= "Feishuidjtrigger"/> </List> </ Property> </Bean> <!--Automatic data exchange of system scheduled tasks - <BeanID= "Feishuidjtrigger"class= "Org.springframework.scheduling.quartz.CronTriggerBean"> < Propertyname= "Jobdetail"><refBean= "Feishuidjdetail"/></ Property> < Propertyname= "Cronexpression"><value>1/20 * * * *?</value></ Property> </Bean> <Beanname= "Feishuidjdetail"class= "Org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> < Propertyname= "TargetObject"><refBean= "Feishuidjjob"/></ Property> < Propertyname= "Targetmethod"><value>Dofeishuidj</value></ Property> </Bean> <Beanname= "Feishuidjjob"class= "Feishuidj." Feishuidjjob "Autowire= "ByName"> < Propertyname= "Hibernatetemplatefeishuidj"><refBean= "Hibernatetemplatefeishuidj" /></ Property> </Bean> </Beans>
<?XML version= "1.0" encoding= "UTF-8"?><!DOCTYPE Beans Public "-//spring//dtd bean//en" "Http://www.springframework.org/dtd/spring-beans.dtd "><Beans> <Beanname= "Feishuiaction"class= "Action.feishui.FeiShuiAction"Singleton= "false"Autowire= "ByName"></Bean> <Beanname= "Feishuiservice"Parent= "Baseproxy"> < Propertyname= "Target" > <refBean= "Feishuiserviceimpl"/> </ Property> </Bean><Beanname= "Feishuiserviceimpl"class= "Domain.service.impl.FeiShuiServiceImpl"Autowire= "ByName" ></Bean> </Beans>
Spring Data Source Configuration