1
0

config-context.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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" xmlns:context="http://www.springframework.org/schema/context"
  4. xsi:schemaLocation="
  5. http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  7. http://www.springframework.org/schema/context
  8. http://www.springframework.org/schema/context/spring-context-4.0.xsd">
  9. <context:property-placeholder
  10. location="classpath*:operate/redis.properties,classpath*:operate/system.properties"
  11. ignore-unresolvable="true" />
  12. <!-- redis 配置 -->
  13. <bean id="redisConfig" class="com.lote.wms.common.core.cache.redis.RedisConfig">
  14. <property name="host">
  15. <value>${redis.host}</value>
  16. </property>
  17. <property name="port">
  18. <value>${redis.port}</value>
  19. </property>
  20. <property name="auth">
  21. <value>${redis.auth}</value>
  22. </property>
  23. <property name="maxTotal">
  24. <value>${redis.max_total}</value>
  25. </property>
  26. <property name="maxIdle">
  27. <value>${redis.max_idle}</value>
  28. </property>
  29. <property name="maxWait">
  30. <value>${redis.max_wait}</value>
  31. </property>
  32. <property name="timeout">
  33. <value>${redis.timeout}</value>
  34. </property>
  35. </bean>
  36. <!-- 系统配置 -->
  37. <bean id="systemConfig" class="com.lote.wms.common.config.SystemConfig">
  38. <property name="sessionIdName">
  39. <value>${system.sessionIdName}</value>
  40. </property>
  41. <property name="runtimeFileDir">
  42. <value>${system.runtimeFileDir}</value>
  43. </property>
  44. <property name="fileServerUrl">
  45. <value>${system.fileServerUrl}</value>
  46. </property>
  47. </bean>
  48. </beans>