update to spring-boot-2.1.8.RELEASE & spring-cloud-Greenwich.SR3
This commit is contained in:
@@ -40,5 +40,10 @@
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
-21
@@ -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 {
|
||||
}
|
||||
+1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user