Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
elearn
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
hqzhdj
elearn
Commits
bc7330a2
Commit
bc7330a2
authored
Oct 30, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SwaggerConfig
parent
6dcb2866
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
4 deletions
+10
-4
cloud-log/src/main/java/com/yizhi/application/SwaggerConfig.java
+4
-1
cloud-system/src/main/java/com/yizhi/system/application/SwaggerConfig.java
+4
-1
cloud-system/src/main/java/com/yizhi/system/application/controller/manage/AccountController.java
+0
-0
cloud-system/src/main/resources/bootstrap.properties
+1
-1
wmy.json
+1
-1
No files found.
cloud-log/src/main/java/com/yizhi/application/SwaggerConfig.java
View file @
bc7330a2
...
...
@@ -4,6 +4,7 @@ package com.yizhi.application;
import
static
com
.
google
.
common
.
base
.
Predicates
.
or
;
import
static
springfox
.
documentation
.
builders
.
PathSelectors
.
regex
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -19,9 +20,11 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
public
class
SwaggerConfig
{
@Value
(
"${swagger.enabled}"
)
private
boolean
swaggerEnabled
;
@Bean
public
Docket
createRestApi
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
.
enable
(
swaggerEnabled
)
.
groupName
(
"日志服务"
)
.
genericModelSubstitutes
(
DeferredResult
.
class
)
.
genericModelSubstitutes
(
ResponseEntity
.
class
)
...
...
cloud-system/src/main/java/com/yizhi/system/application/SwaggerConfig.java
View file @
bc7330a2
...
...
@@ -4,6 +4,7 @@ package com.yizhi.system.application;
import
static
com
.
google
.
common
.
base
.
Predicates
.
or
;
import
static
springfox
.
documentation
.
builders
.
PathSelectors
.
regex
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -19,9 +20,11 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
public
class
SwaggerConfig
{
@Value
(
"${swagger.enabled}"
)
private
boolean
swaggerEnabled
;
@Bean
public
Docket
createRestApi
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
.
enable
(
swaggerEnabled
)
.
groupName
(
"认证授权服务"
)
.
genericModelSubstitutes
(
DeferredResult
.
class
)
.
genericModelSubstitutes
(
ResponseEntity
.
class
)
...
...
cloud-system/src/main/java/com/yizhi/system/application/controller/manage/AccountController.java
View file @
bc7330a2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
cloud-system/src/main/resources/bootstrap.properties
View file @
bc7330a2
server.port
=
350
00
server.port
=
350
99
spring.application.name
=
system
ACTIVE
=
${spring.profiles.active}
spring.profiles.active
=
prod
...
...
wmy.json
View file @
bc7330a2
...
...
@@ -10,7 +10,7 @@
"JAVA_OPTS"
:
"-Dspring.profiles.active=prod -Dspring.cloud.nacos.config.server-addr=192.168.1.22:3333,192.168.1.22:4444,192.168.1.22:5555"
},
"sit"
:
{
"JAVA_OPTS"
:
"-Dspring.profiles.active=sit -Dspring.cloud.nacos.config.server-addr=1
92.168.1.13:3333,192.168.1.24:4444,192.168.1.38:5555
"
"JAVA_OPTS"
:
"-Dspring.profiles.active=sit -Dspring.cloud.nacos.config.server-addr=1
0.23.1.183:8848
"
},
"uat"
:
{},
"prod"
:
{}
...
...
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