applicationContext.xml 1.1 KB
Newer Older
X
xieyinglin 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
       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
	"
       default-autowire="byName">

    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="com.taosdata.jdbc.TSDBDriver"></property>
        <property name="url" value="jdbc:TAOS://127.0.0.1:6030/log"></property>
        <property name="username" value="root"></property>
        <property name="password" value="taosdata"></property>
    </bean>


    <bean id = "jdbcTemplate"  class="org.springframework.jdbc.core.JdbcTemplate" >
        <property name="dataSource" ref = "dataSource" ></property>
    </bean>

</beans>