spring-store.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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. <bean id="storeService" class="com.fsm.cms.store.StoreService">
  10. <property name="store" ref="storeDisk" />
  11. </bean>
  12. <bean id="storeDb" class="com.fsm.cms.store.StoreDb"></bean>
  13. <bean id="storeDisk" class="com.fsm.cms.store.StoreDisk">
  14. <property name="diskPath" value="${webapp.root}/WEB-INF/upload" />
  15. </bean>
  16. <bean id="publishStore" class="com.fsm.cms.store.StoreDisk">
  17. <property name="diskPath" value="${webapp.root}/html" />
  18. </bean>
  19. <bean id="templateStore" class="com.fsm.cms.store.StoreDisk">
  20. <property name="diskPath" value="${webapp.root}/WEB-INF/templates/" />
  21. </bean>
  22. <bean id="dbBak" class="com.fsm.platform.service.DbBakService">
  23. <property name="dataSource" ref="dataSource" />
  24. <property name="savePath" value="${webapp.root}/WEB-INF/dbbak/" />
  25. </bean>
  26. <bean id="urlRuleDefault" class="com.fsm.cms.urlrule.UrlRuleDefault">
  27. <property name="columnRule" value="/$R{RuleID}/node_$R{ColumnID}.html" />
  28. <property name="templateRule" value="/$R{RuleID}/tplimg" />
  29. <property name="webRule" value="/$R{RuleID}/content/$R{Year}-$R{Month}/$R{Date}/$R{ColumnID}_$R{InfoSerial}.html" />
  30. <property name="imageRule" value="/$R{RuleID}/image" />
  31. <property name="fileRule" value="/$R{RuleID}/download" />
  32. <property name="videoRule" value="/$R{RuleID}/video" />
  33. </bean>
  34. </beans>