Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
718ac960
Commit
718ac960
authored
Jan 09, 2020
by
铭飞
Committed by
Gitee
Jan 09, 2020
Browse files
!210 修复swagger文档问题
Merge pull request !210 from 灰色DT/5.0.0
parents
2dff4d4b
304f1605
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/MSApplication.java
View file @
718ac960
...
...
@@ -13,7 +13,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@ComponentScan
(
basePackages
=
{
"net.mingsoft"
})
@MapperScan
(
basePackages
={
"**.dao"
})
@ServletComponentScan
(
basePackages
=
{
"net.mingsoft"
})
@EnableSwagger2
public
class
MSApplication
{
public
static
void
main
(
String
[]
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;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
@Configuration
@EnableSwagger2
@ConditionalOnProperty
(
prefix
=
"ms"
,
name
=
"swagger.enable"
,
havingValue
=
"true"
)
public
class
SwaggerConfig
{
...
...
src/main/resources/application.yml
View file @
718ac960
...
...
@@ -6,8 +6,9 @@ server:
logging
:
level
:
net.mingsoft
:
trace
file
:
mcms.log
#日志文件存放位置
path
:
log
#日志压缩文件存放位置
file
:
name
:
mcms.log
path
:
log
ms
:
swagger
:
enable
:
true
#启用swagger文档
...
...
Write
Preview
Supports
Markdown
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