context.xml 961 B

12345678910111213141516171819
  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. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
  5. <!-- 引入ureport2报表xml配置文件 -->
  6. <import resource="classpath:ureport-console-context.xml"/>
  7. <!-- 修改目录文件位置。这里多说几句,官方文档默认是在/WEB-INF/config.properties下面,
  8. WEB-INF每次运行的时候都会动态生成一个临时目录,我们是找不到的,所以我们将位置修改成绝对路径,自己可以找到。
  9. 由于config.properties是在resouces配置下,所以使用classpath: -->
  10. <bean id="propertyConfigurer" parent="ureport.props">
  11. <property name="location">
  12. <value>classpath:config.properties</value>
  13. </property>
  14. </bean>
  15. </beans>