zhouhao il y a 8 ans
Parent
commit
ae2abf3880

+ 3 - 4
hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/AopAuthorizeValidator.java

@@ -2,18 +2,17 @@ package org.hsweb.web.core.authorize;
 
 import org.aspectj.lang.ProceedingJoinPoint;
 import org.aspectj.lang.reflect.MethodSignature;
+import org.hsweb.commons.ClassUtils;
+import org.hsweb.commons.StringUtils;
+import org.hsweb.web.bean.po.user.User;
 import org.hsweb.web.core.authorize.annotation.Authorize;
 import org.hsweb.web.core.authorize.oauth2.OAuth2Manager;
 import org.hsweb.web.core.authorize.validator.SimpleAuthorizeValidator;
-import org.hsweb.web.bean.po.user.User;
 import org.hsweb.web.core.exception.AuthorizeException;
 import org.hsweb.web.core.session.HttpSessionManager;
 import org.hsweb.web.core.utils.AopUtils;
-import org.hsweb.web.core.utils.ThreadLocalUtils;
 import org.hsweb.web.core.utils.WebUtil;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.hsweb.commons.ClassUtils;
-import org.hsweb.commons.StringUtils;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;

+ 2 - 1
hsweb-web-datasource/src/main/java/org/hsweb/web/datasource/dynamic/DynamicDataSourceAutoConfiguration.java

@@ -86,7 +86,8 @@ public class DynamicDataSourceAutoConfiguration {
     }
 
     @Bean(initMethod = "init", destroyMethod = "close")
-    public UserTransactionManager userTransactionManager() {
+    public UserTransactionManager userTransactionManager(
+            UserTransactionService userTransactionService) {
         UserTransactionManager transactionManager = new UserTransactionManager();
         transactionManager.setForceShutdown(true);
         transactionManager.setStartupTransactionService(false);

+ 0 - 1
hsweb-web-service/hsweb-web-service-api/src/main/java/org/hsweb/web/service/config/ConfigService.java

@@ -47,7 +47,6 @@ public interface ConfigService extends GenericService<Config, String> {
      */
     String get(String name, String key, String defaultValue);
 
-
     /**
      * 参照 {@link ConfigService#get(String, String)},将值转为int类型
      */