浏览代码

applicaitonContext属性未注入, 请在applicationContext.xml中定义SpringContextHolder 修改

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

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

@@ -28,6 +28,8 @@
 	<!-- 配置 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}" />