Skip to content

Commit 08277d0

Browse files
committed
fix javadoc to deploy
1 parent e3d3eb0 commit 08277d0

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

src/main/java/com/spring4all/swagger/DocketBeanFactoryPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
/**
1313
* Used to change the initialization order of the starter
14+
* Created on 2021/8/13
1415
*
1516
* @author llin6025
16-
* @Create 2021/8/13
1717
* @since 2.0.0
1818
*/
1919
@ConditionalOnProperty(value = "springfox.documentation.enabled", havingValue = "true", matchIfMissing = true)

src/main/java/com/spring4all/swagger/DocketConfiguration.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
import springfox.documentation.spring.web.plugins.Docket;
3131

3232
/**
33-
* @author 翟永超
34-
* @Create date:2017/8/7.
35-
* @Update date:2021/8/13
36-
* @My blog: http://blog.didispace.com
33+
* @author 程序猿DD
34+
* @author andi.lin
35+
*
36+
* Created on 2017/8/7
37+
* Update on 2021/8/13
3738
*/
3839
@Configuration
3940
@EnableConfigurationProperties(SwaggerProperties.class)

src/main/java/com/spring4all/swagger/SwaggerAuthorizationConfiguration.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ public SwaggerAuthorizationConfiguration(SwaggerAuthorizationProperties swaggerA
3030
this.swaggerAuthorizationProperties = swaggerAuthorizationProperties;
3131
}
3232

33-
/**
34-
* 配置默认的全局鉴权策略的开关,以及通过正则表达式进行匹配;默认 ^.*$ 匹配所有URL
35-
* 其中 securityReferences 为配置启用的鉴权策略
36-
*
37-
* @return
38-
*/
3933
public SecurityContext securityContext() {
34+
// 配置默认的全局鉴权策略的开关,以及通过正则表达式进行匹配;默认 ^.*$ 匹配所有URL
35+
// 其中 securityReferences 为配置启用的鉴权策略
4036
AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
4137
AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
4238
authorizationScopes[0] = authorizationScope;
@@ -50,23 +46,15 @@ public SecurityContext securityContext() {
5046
.build();
5147
}
5248

53-
/**
54-
* 配置基于 ApiKey 的鉴权对象
55-
*
56-
* @return
57-
*/
5849
public ApiKey apiKey() {
50+
// 配置基于 ApiKey 的鉴权对象
5951
return new ApiKey(swaggerAuthorizationProperties.getName(),
6052
swaggerAuthorizationProperties.getKeyName(),
6153
ApiKeyVehicle.HEADER.getValue());
6254
}
6355

64-
/**
65-
* 配置基于 BasicAuth 的鉴权对象
66-
*
67-
* @return
68-
*/
6956
public BasicAuth basicAuth() {
57+
// 配置基于 BasicAuth 的鉴权对象
7058
return new BasicAuth(swaggerAuthorizationProperties.getName());
7159
}
7260

0 commit comments

Comments
 (0)