Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
718ac960
Commit
718ac960
authored
Jan 09, 2020
by
铭飞
Committed by
Gitee
Jan 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
!210 修复swagger文档问题
Merge pull request !210 from 灰色DT/5.0.0
parents
2dff4d4b
304f1605
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
MSApplication.java
src/main/java/net/mingsoft/MSApplication.java
+0
-1
SwaggerConfig.java
src/main/java/net/mingsoft/config/SwaggerConfig.java
+1
-0
application.yml
src/main/resources/application.yml
+3
-2
No files found.
src/main/java/net/mingsoft/MSApplication.java
View file @
718ac960
...
@@ -13,7 +13,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
...
@@ -13,7 +13,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@ComponentScan
(
basePackages
=
{
"net.mingsoft"
})
@ComponentScan
(
basePackages
=
{
"net.mingsoft"
})
@MapperScan
(
basePackages
={
"**.dao"
})
@MapperScan
(
basePackages
={
"**.dao"
})
@ServletComponentScan
(
basePackages
=
{
"net.mingsoft"
})
@ServletComponentScan
(
basePackages
=
{
"net.mingsoft"
})
@EnableSwagger2
public
class
MSApplication
{
public
class
MSApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
MSApplication
.
class
,
args
);
SpringApplication
.
run
(
MSApplication
.
class
,
args
);
...
...
src/main/java/net/mingsoft/config/SwaggerConfig.java
View file @
718ac960
...
@@ -14,6 +14,7 @@ import springfox.documentation.spring.web.plugins.Docket;
...
@@ -14,6 +14,7 @@ import springfox.documentation.spring.web.plugins.Docket;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
@Configuration
@Configuration
@EnableSwagger2
@ConditionalOnProperty
(
prefix
=
"ms"
,
name
=
"swagger.enable"
,
havingValue
=
"true"
)
@ConditionalOnProperty
(
prefix
=
"ms"
,
name
=
"swagger.enable"
,
havingValue
=
"true"
)
public
class
SwaggerConfig
{
public
class
SwaggerConfig
{
...
...
src/main/resources/application.yml
View file @
718ac960
...
@@ -6,8 +6,9 @@ server:
...
@@ -6,8 +6,9 @@ server:
logging
:
logging
:
level
:
level
:
net.mingsoft
:
trace
net.mingsoft
:
trace
file
:
mcms.log
#日志文件存放位置
file
:
path
:
log
#日志压缩文件存放位置
name
:
mcms.log
path
:
log
ms
:
ms
:
swagger
:
swagger
:
enable
:
true
#启用swagger文档
enable
:
true
#启用swagger文档
...
...
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