Forráskód Böngészése

SpringContextHolder 报错修改

user5 4 éve
szülő
commit
fc1a39a1ba
1 módosított fájl, 2 hozzáadás és 2 törlés
  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"
 	default-lazy-init="true">
 
+
+	<bean class="com.jeeplus.common.utils.SpringContextHolder" lazy-init="false"/>
     <!-- 加载配置属性文件 -->
 	<context:property-placeholder ignore-unresolvable="true" location="classpath:jeeplus.properties" />
 	
@@ -28,8 +30,6 @@
 	<!-- 配置 JSR303 Bean Validator 定义 -->
 	<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">
 		<property name="configLocation" value="classpath:${ehcache.configFile}" />