suochencheng 6 лет назад
Родитель
Сommit
91ebdf2e3c

+ 1 - 2
src/main/java/com/izouma/awesomeadmin/service/impl/UserInfoServiceImpl.java

@@ -65,8 +65,7 @@ public class UserInfoServiceImpl implements UserInfoService {
     private RecommenderLogMapper recommenderLogMapper;
 
 
-    @Autowired
-    @Lazy
+    @Autowired(required = false)
     private WxMaService wxMaService;
 
     @Override

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

@@ -44,7 +44,6 @@
     <context:component-scan base-package="com.izouma.awesomeadmin.web"/>
     <context:component-scan base-package="com.izouma.weixin.web"/>
 
-
     <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
         <property name="messageConverters">
             <list>
@@ -91,7 +90,8 @@
     </bean>
     <bean id="exceptionResolver" class="com.izouma.awesomeadmin.shiro.MyExceptionResolver"/>
 
-    <bean id="weixinConfig" class="com.izouma.awesomeadmin.container.WeixinConfig"/>
+    <bean id="weixinConfig" class="com.izouma.awesomeadmin.container.WeixinConfig"  />
+
 
     <!-- dwz静态资源管理  -->
     <mvc:resources mapping="/js/**" location="/js/"/>