123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?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:cache="http://www.springframework.org/schema/cache"
- xmlns:p="http://www.springframework.org/schema/p"
- xmlns:task="http://www.springframework.org/schema/task"
- xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
-
-
- <context:component-scan base-package="com.kenyattaclark.spring.cache,com.sinosoft.cm.job" />
- <cache:annotation-driven />
- <task:annotation-driven />
- <!-- generic cache manager -->
- <bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
- <property name="caches">
- <set>
- <bean class="org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean" p:name="states"/>
- </set>
- </property>
- </bean>
- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName" value="jndi-dm"></property>
- <property name="resourceRef" value="true"></property>
- </bean>
- <!-- <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
- destroy-method="close" lazy-init="false">
-
- <property name="driverClass">
- <value>dm.jdbc.driver.DmDriver</value>
- </property>
- <property name="jdbcUrl">
- <value>jdbc:dm://10.150.74.81:5236</value>
- <value>jdbc:dm://10.91.75.241:5236</value>
- <value>jdbc:dm://192.168.1.19:5236</value>
- <value>jdbc:dm://10.150.74.81:5236</value>
- <value>jdbc:dm://10.150.20.146:5336</value>
- <value>jdbc:dm://127.0.0.1:5236</value>
- </property>
- <property name="user">
- NWYJ f4d042d2cf32dcc6
- <value>f4d042d2cf32dcc6</value>
- </property>
- <property name="password">
- NWYJ123456 695dcb71fddb60abc07455fb05fcc6f1 123456789 45bb7c8a9a699cd7f2bbe47f3c9a7c86
- <value>695dcb71fddb60abc07455fb05fcc6f1</value>
- </property>
-
- MSSQL
-
- <property name="driverClass">
- <value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
- </property>
- <property name="jdbcUrl">
- <value>jdbc:sqlserver://192.168.100.185;databaseName=hbyj</value>
- </property>
- <property name="user">
- <value>ae5a8d753e60b7c1</value>
- </property>
- <property name="password">
- <value>6ca6ddfaa0f22bd418558a791225b82d</value>
- </property>
-
- 最小连接数
- <property name="minPoolSize">
- <value>30</value>
- </property>
- 达到最大连接数后可以增加的连接数 个
- <property name="acquireIncrement">
- <value>5</value>
- </property>
- 最大连接数
- <property name="maxPoolSize">
- <value>1000</value>
- </property>
- 最大闲置时间 秒
- <property name="maxIdleTime">
- <value>30</value>
- </property>
- 当连接池用完时客户端调用getConnection()后等待获取新连接的时间,超时后将抛出SQLException,如设为0则无限期等待。单位毫秒。Default: 0
- <property name="checkoutTimeout">
- <value>30000</value>
- </property>
- <property name="maxStatements">
- <value>100</value>
- </property>
- <property name="maxStatementsPerConnection">
- <value>100</value>
- </property>
- 闲置的连接测试周期 秒
- <property name="idleConnectionTestPeriod">
- <value>60</value>
- </property>
- </bean> -->
- <bean id="WSClientConfigure" class="com.system.configer.vo.WSClientConfigure" lazy-init="false">
- <!-- 图片生成路径-->
- <property name="imagePath">
- <value>d:\\</value>
- </property>
- <property name="uploadPath">
- <value>upload</value>
- </property>
- <property name="maxSize">
- <!-- 10m-->
- <value>10485760</value>
- </property>
- <property name="totalSize">
- <!-- 40m-->
- <value>41943040</value>
- </property>
- </bean>
- </beans>
|