update to spring-boot-2.1.8.RELEASE & spring-cloud-Greenwich.SR3

This commit is contained in:
zlt
2019-10-04 21:45:37 +08:00
parent cbfe49e42a
commit eecaf5bb58
38 changed files with 93 additions and 117 deletions
@@ -1,21 +0,0 @@
package com.central.oauth2.common.annotation;
import com.central.oauth2.common.config.TokenStoreConfig;
import org.springframework.context.annotation.Import;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 开启token存储认证配置化
*
* @author zlt
* @date 2019/7/7
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(TokenStoreConfig.class)
public @interface EnableTokenStore {
}
@@ -10,6 +10,7 @@ import org.springframework.context.annotation.Import;
*
* @author zlt
*/
@Configuration
public class TokenStoreConfig {
@Configuration
@ConditionalOnProperty(prefix = "zlt.oauth2.token.store", name = "type", havingValue = "db")