propertyFileConfigurer.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to Jasig under one or more contributor license
  4. agreements. See the NOTICE file distributed with this work
  5. for additional information regarding copyright ownership.
  6. Jasig licenses this file to you under the Apache License,
  7. Version 2.0 (the "License"); you may not use this file
  8. except in compliance with the License. You may obtain a
  9. copy of the License at the following location:
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <beans xmlns="http://www.springframework.org/schema/beans"
  19. xmlns:task="http://www.springframework.org/schema/task"
  20. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xmlns:context="http://www.springframework.org/schema/context"
  22. xmlns:tx="http://www.springframework.org/schema/tx"
  23. xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
  24. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  25. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
  26. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
  27. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  28. http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.1.xsd">
  29. <description>
  30. This file lets CAS know where you've stored the cas.properties file which details some of the configuration options
  31. that are specific to your environment. You can specify the location of the file here. You may wish to place the file outside
  32. of the Servlet context if you have options that are specific to a tier (i.e. test vs. production) so that the WAR file
  33. can be moved between tiers without modification.
  34. </description>
  35. <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
  36. p:location="/WEB-INF/cas.properties" p:ignoreUnresolvablePlaceholders="true"/>
  37. <context:property-placeholder location="WEB-INF/config/config.properties" ignore-unresolvable="true" />
  38. <bean id="propertiesGisReader"
  39. class="org.springframework.beans.factory.config.PropertiesFactoryBean">
  40. <property name="locations">
  41. <list>
  42. <!--<value>classpath:param.properties</value>-->
  43. <value>/WEB-INF/config/gis.properties</value>
  44. </list>
  45. </property>
  46. </bean>
  47. </beans>