commit
718ac9603f
|
@ -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);
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
@ -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文档
|
||||||
|
|
Loading…
Reference in New Issue