Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
58771bd8
Commit
58771bd8
authored
Jul 31, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swagger缺省配置
parent
83b5eb88
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
64 deletions
+24
-64
discovery-console/src/main/java/com/nepxion/discovery/console/configuration/SwaggerConfiguration.java
+8
-8
discovery-plugin-admin-center/src/main/java/com/nepxion/discovery/plugin/admincenter/configuration/SwaggerConfiguration.java
+8
-8
discovery-springcloud-example-console/src/main/resources/application.properties
+2
-12
discovery-springcloud-example-gateway/src/main/resources/bootstrap.properties
+2
-12
discovery-springcloud-example-service/src/main/resources/bootstrap.properties
+2
-12
discovery-springcloud-example-zuul/src/main/resources/bootstrap.properties
+2
-12
No files found.
discovery-console/src/main/java/com/nepxion/discovery/console/configuration/SwaggerConfiguration.java
View file @
58771bd8
...
...
@@ -30,28 +30,28 @@ public class SwaggerConfiguration implements WebMvcConfigurer {
@Value
(
"${spring.application.name}"
)
private
String
serviceName
;
@Value
(
"${swagger.service.base.package}"
)
@Value
(
"${swagger.service.base.package
:com.nepxion.discovery.console.endpoint
}"
)
private
String
basePackage
;
@Value
(
"${swagger.service.description}"
)
@Value
(
"${swagger.service.description
:Console Restful APIs
}"
)
private
String
description
;
@Value
(
"${swagger.service.version}"
)
@Value
(
"${swagger.service.version
:1.0.0
}"
)
private
String
version
;
@Value
(
"${swagger.service.license.name}"
)
@Value
(
"${swagger.service.license.name
:Apache License 2.0
}"
)
private
String
license
;
@Value
(
"${swagger.service.license.url}"
)
@Value
(
"${swagger.service.license.url
:http://www.apache.org/licenses/LICENSE-2.0
}"
)
private
String
licenseUrl
;
@Value
(
"${swagger.service.contact.name}"
)
@Value
(
"${swagger.service.contact.name
:Haojun Ren
}"
)
private
String
contactName
;
@Value
(
"${swagger.service.contact.url}"
)
@Value
(
"${swagger.service.contact.url
:https://github.com/Nepxion/Discovery
}"
)
private
String
contactUrl
;
@Value
(
"${swagger.service.contact.email}"
)
@Value
(
"${swagger.service.contact.email
:1394997@qq.com
}"
)
private
String
contactEmail
;
@Bean
...
...
discovery-plugin-admin-center/src/main/java/com/nepxion/discovery/plugin/admincenter/configuration/SwaggerConfiguration.java
View file @
58771bd8
...
...
@@ -32,28 +32,28 @@ public class SwaggerConfiguration implements WebMvcConfigurer {
@Value
(
"${spring.application.name}"
)
private
String
serviceName
;
@Value
(
"${swagger.service.base.package}"
)
@Value
(
"${swagger.service.base.package
:com.nepxion.discovery.plugin.admincenter.endpoint
}"
)
private
String
basePackage
;
@Value
(
"${swagger.service.description}"
)
@Value
(
"${swagger.service.description
:Admin Center Restful APIs
}"
)
private
String
description
;
@Value
(
"${swagger.service.version}"
)
@Value
(
"${swagger.service.version
:1.0.0
}"
)
private
String
version
;
@Value
(
"${swagger.service.license.name}"
)
@Value
(
"${swagger.service.license.name
:Apache License 2.0
}"
)
private
String
license
;
@Value
(
"${swagger.service.license.url}"
)
@Value
(
"${swagger.service.license.url
:http://www.apache.org/licenses/LICENSE-2.0
}"
)
private
String
licenseUrl
;
@Value
(
"${swagger.service.contact.name}"
)
@Value
(
"${swagger.service.contact.name
:Haojun Ren
}"
)
private
String
contactName
;
@Value
(
"${swagger.service.contact.url}"
)
@Value
(
"${swagger.service.contact.url
:https://github.com/Nepxion/Discovery
}"
)
private
String
contactUrl
;
@Value
(
"${swagger.service.contact.email}"
)
@Value
(
"${swagger.service.contact.email
:1394997@qq.com
}"
)
private
String
contactEmail
;
@Bean
...
...
discovery-springcloud-example-console/src/main/resources/application.properties
View file @
58771bd8
...
...
@@ -41,14 +41,4 @@ spring.redis.pool.min-idle=0
# Admin config
management.port
=
3333
management.security.enabled
=
false
# Swagger config
swagger.service.base.package
=
com.nepxion.discovery.console.endpoint
swagger.service.description
=
Console Restful APIs
swagger.service.version
=
1.0.0
swagger.service.license.name
=
Apache License 2.0
swagger.service.license.url
=
http://www.apache.org/licenses/LICENSE-2.0
swagger.service.contact.name
=
Haojun Ren
swagger.service.contact.url
=
https://github.com/Nepxion/Discovery
swagger.service.contact.email
=
1394997@qq.com
\ No newline at end of file
management.security.enabled
=
false
\ No newline at end of file
discovery-springcloud-example-gateway/src/main/resources/bootstrap.properties
View file @
58771bd8
...
...
@@ -55,14 +55,4 @@ spring.application.config.path=classpath:rule.xml
# Plugin strategy config
# 开启和关闭用户自定义和编程灰度路由策略的控制,例如用户根据业务参数的不同,负载均衡到不同的服务器。缺失则默认为true
spring.application.strategy.control.enabled
=
true
# Swagger config
swagger.service.base.package
=
com.nepxion.discovery.plugin.admincenter.endpoint
swagger.service.description
=
Admin Center Restful APIs
swagger.service.version
=
1.0.0
swagger.service.license.name
=
Apache License 2.0
swagger.service.license.url
=
http://www.apache.org/licenses/LICENSE-2.0
swagger.service.contact.name
=
Haojun Ren
swagger.service.contact.url
=
https://github.com/Nepxion/Discovery
swagger.service.contact.email
=
1394997@qq.com
\ No newline at end of file
spring.application.strategy.control.enabled
=
true
\ No newline at end of file
discovery-springcloud-example-service/src/main/resources/bootstrap.properties
View file @
58771bd8
...
...
@@ -57,14 +57,4 @@ spring.application.config.path=classpath:rule.xml
# 开启和关闭用户自定义和编程灰度路由策略的控制,例如用户根据业务参数的不同,负载均衡到不同的服务器。缺失则默认为true
spring.application.strategy.control.enabled
=
true
# 用户自定义和编程灰度路由策略的时候,需要指定对业务Controller类的扫描路径,以便传递上下文对象。该项配置只对服务有效,对网关无效
spring.application.strategy.scan.packages
=
com.nepxion.discovery.plugin.example.service.feign
# Swagger config
swagger.service.base.package
=
com.nepxion.discovery.plugin.admincenter.endpoint
swagger.service.description
=
Admin Center Restful APIs
swagger.service.version
=
1.0.0
swagger.service.license.name
=
Apache License 2.0
swagger.service.license.url
=
http://www.apache.org/licenses/LICENSE-2.0
swagger.service.contact.name
=
Haojun Ren
swagger.service.contact.url
=
https://github.com/Nepxion/Discovery
swagger.service.contact.email
=
1394997@qq.com
\ No newline at end of file
spring.application.strategy.scan.packages
=
com.nepxion.discovery.plugin.example.service.feign
\ No newline at end of file
discovery-springcloud-example-zuul/src/main/resources/bootstrap.properties
View file @
58771bd8
...
...
@@ -55,14 +55,4 @@ spring.application.config.path=classpath:rule.xml
# Plugin strategy config
# 开启和关闭用户自定义和编程灰度路由策略的控制,例如用户根据业务参数的不同,负载均衡到不同的服务器。缺失则默认为true
spring.application.strategy.control.enabled
=
true
# Swagger config
swagger.service.base.package
=
com.nepxion.discovery.plugin.admincenter.endpoint
swagger.service.description
=
Admin Center Restful APIs
swagger.service.version
=
1.0.0
swagger.service.license.name
=
Apache License 2.0
swagger.service.license.url
=
http://www.apache.org/licenses/LICENSE-2.0
swagger.service.contact.name
=
Haojun Ren
swagger.service.contact.url
=
https://github.com/Nepxion/Discovery
swagger.service.contact.email
=
1394997@qq.com
\ No newline at end of file
spring.application.strategy.control.enabled
=
true
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment