applicationContext.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:cache="http://www.springframework.org/schema/cache"
  6. xmlns:p="http://www.springframework.org/schema/p"
  7. xmlns:task="http://www.springframework.org/schema/task"
  8. xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  9. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  10. 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">
  11. <context:component-scan base-package="com.kenyattaclark.spring.cache,com.sinosoft.cm.job" />
  12. <cache:annotation-driven />
  13. <task:annotation-driven />
  14. <!-- generic cache manager -->
  15. <bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
  16. <property name="caches">
  17. <set>
  18. <bean class="org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean" p:name="states"/>
  19. </set>
  20. </property>
  21. </bean>
  22. <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
  23. <property name="jndiName" value="jndi-dm"></property>
  24. <property name="resourceRef" value="true"></property>
  25. </bean>
  26. <!-- <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
  27. destroy-method="close" lazy-init="false">
  28. <property name="driverClass">
  29. <value>dm.jdbc.driver.DmDriver</value>
  30. </property>
  31. <property name="jdbcUrl">
  32. <value>jdbc:dm://10.150.74.81:5236</value>
  33. <value>jdbc:dm://10.91.75.241:5236</value>
  34. <value>jdbc:dm://192.168.1.19:5236</value>
  35. <value>jdbc:dm://10.150.74.81:5236</value>
  36. <value>jdbc:dm://10.150.20.146:5336</value>
  37. <value>jdbc:dm://127.0.0.1:5236</value>
  38. </property>
  39. <property name="user">
  40. NWYJ f4d042d2cf32dcc6
  41. <value>f4d042d2cf32dcc6</value>
  42. </property>
  43. <property name="password">
  44. NWYJ123456 695dcb71fddb60abc07455fb05fcc6f1 123456789 45bb7c8a9a699cd7f2bbe47f3c9a7c86
  45. <value>695dcb71fddb60abc07455fb05fcc6f1</value>
  46. </property>
  47. MSSQL
  48. <property name="driverClass">
  49. <value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
  50. </property>
  51. <property name="jdbcUrl">
  52. <value>jdbc:sqlserver://192.168.100.185;databaseName=hbyj</value>
  53. </property>
  54. <property name="user">
  55. <value>ae5a8d753e60b7c1</value>
  56. </property>
  57. <property name="password">
  58. <value>6ca6ddfaa0f22bd418558a791225b82d</value>
  59. </property>
  60. 最小连接数
  61. <property name="minPoolSize">
  62. <value>30</value>
  63. </property>
  64. 达到最大连接数后可以增加的连接数 个
  65. <property name="acquireIncrement">
  66. <value>5</value>
  67. </property>
  68. 最大连接数
  69. <property name="maxPoolSize">
  70. <value>1000</value>
  71. </property>
  72. 最大闲置时间 秒
  73. <property name="maxIdleTime">
  74. <value>30</value>
  75. </property>
  76. 当连接池用完时客户端调用getConnection()后等待获取新连接的时间,超时后将抛出SQLException,如设为0则无限期等待。单位毫秒。Default: 0
  77. <property name="checkoutTimeout">
  78. <value>30000</value>
  79. </property>
  80. <property name="maxStatements">
  81. <value>100</value>
  82. </property>
  83. <property name="maxStatementsPerConnection">
  84. <value>100</value>
  85. </property>
  86. 闲置的连接测试周期 秒
  87. <property name="idleConnectionTestPeriod">
  88. <value>60</value>
  89. </property>
  90. </bean> -->
  91. <bean id="WSClientConfigure" class="com.system.configer.vo.WSClientConfigure" lazy-init="false">
  92. <!-- 图片生成路径-->
  93. <property name="imagePath">
  94. <value>d:\\</value>
  95. </property>
  96. <property name="uploadPath">
  97. <value>upload</value>
  98. </property>
  99. <property name="maxSize">
  100. <!-- 10m-->
  101. <value>10485760</value>
  102. </property>
  103. <property name="totalSize">
  104. <!-- 40m-->
  105. <value>41943040</value>
  106. </property>
  107. </bean>
  108. </beans>