浏览代码

SpringContextHolder 报错修改

user5 4 年之前
父节点
当前提交
fc1a39a1ba
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/spring-context.xml

+ 2 - 2
src/main/resources/spring-context.xml

@@ -12,6 +12,8 @@
 		http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.0.xsd"
 		http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.0.xsd"
 	default-lazy-init="true">
 	default-lazy-init="true">
 
 
+
+	<bean class="com.jeeplus.common.utils.SpringContextHolder" lazy-init="false"/>
     <!-- 加载配置属性文件 -->
     <!-- 加载配置属性文件 -->
 	<context:property-placeholder ignore-unresolvable="true" location="classpath:jeeplus.properties" />
 	<context:property-placeholder ignore-unresolvable="true" location="classpath:jeeplus.properties" />
 	
 	
@@ -28,8 +30,6 @@
 	<!-- 配置 JSR303 Bean Validator 定义 -->
 	<!-- 配置 JSR303 Bean Validator 定义 -->
 	<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />
 	<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />
 
 
-	<bean class="com.jeeplus.common.utils.SpringContextHolder" lazy-init="false"/>
-
 	<!-- 缓存配置 -->
 	<!-- 缓存配置 -->
 	<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
 	<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
 		<property name="configLocation" value="classpath:${ehcache.configFile}" />
 		<property name="configLocation" value="classpath:${ehcache.configFile}" />