Spring配置小筆記一
阿新 • • 發佈:2019-01-28
資料庫訪問Bean的配置
<property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/> <property name="url" value="jdbc:sqlserver://192.168.1.118:1433;databaseName=rmes_hxx"/> <property name="username" value="sa"/> <property name="password" value="ieig"/> <property name="maxActive" value="4"/> <property name="maxIdle" value="4"/> </bean> <bean id="huaxinSqlServerManage" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="sqlServerHX"/> </bean>