♻️ 重构代码。代码优化去除无用引用

This commit is contained in:
冷冷 2018-07-21 18:07:14 +08:00
parent 85368019cb
commit 1871007c38
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class SwaggerConfig {
@Bean @Bean
public Docket createRestApi() { public Docket createRestApi() {
ParameterBuilder tokenBuilder = new ParameterBuilder(); ParameterBuilder tokenBuilder = new ParameterBuilder();
List<Parameter> parameterList = new ArrayList<Parameter>(); List<Parameter> parameterList = new ArrayList<>();
tokenBuilder.name("Authorization") tokenBuilder.name("Authorization")
.defaultValue("去其他请求中获取heard中token参数") .defaultValue("去其他请求中获取heard中token参数")
.description("令牌") .description("令牌")