Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /