mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-15 04:52:09 +08:00
springBoot 2.7.3
This commit is contained in:
@@ -26,12 +26,12 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
|
||||
|
||||
@Configuration
|
||||
@AutoConfiguration
|
||||
public class SessionAutoConfiguration implements InitializingBean {
|
||||
private static final Logger _logger =
|
||||
LoggerFactory.getLogger(SessionAutoConfiguration.class);
|
||||
|
||||
@@ -30,12 +30,12 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import com.nimbusds.jose.JOSEException;
|
||||
|
||||
|
||||
@Configuration
|
||||
@AutoConfiguration
|
||||
public class TokenAutoConfiguration implements InitializingBean {
|
||||
private static final Logger _logger =
|
||||
LoggerFactory.getLogger(TokenAutoConfiguration.class);
|
||||
@@ -48,6 +48,7 @@ public class TokenAutoConfiguration implements InitializingBean {
|
||||
AuthRefreshTokenService refreshTokenService,
|
||||
@Value("${maxkey.server.persistence}") int persistence) throws JOSEException {
|
||||
CongressService congressService;
|
||||
_logger.debug("cache persistence {}" , persistence);
|
||||
if (persistence == ConstsPersistence.REDIS) {
|
||||
congressService = new RedisCongressService(redisConnFactory);
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user