优化配置

This commit is contained in:
zhouhao
2017-10-13 16:01:23 +08:00
parent 44bf0960c8
commit e235b1e301
8 changed files with 28 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ import org.hswebframework.web.authorization.access.DataAccessHandler;
import org.hswebframework.web.authorization.basic.handler.DefaultAuthorizingHandler;
import org.hswebframework.web.authorization.basic.handler.access.DefaultDataAccessController;
import org.hswebframework.web.authorization.basic.web.*;
import org.hswebframework.web.authorization.token.MemoryUserTokenManager;
import org.hswebframework.web.authorization.token.DefaultUserTokenManager;
import org.hswebframework.web.authorization.token.UserTokenManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanPostProcessor;
@@ -61,7 +61,7 @@ public class AuthorizingHandlerAutoConfiguration {
@ConditionalOnMissingBean(UserTokenManager.class)
@ConfigurationProperties(prefix = "hsweb.authorize")
public UserTokenManager userTokenManager() {
return new MemoryUserTokenManager();
return new DefaultUserTokenManager();
}
@Bean