添加日志 文档开关
This commit is contained in:
parent
834cb473f5
commit
30ef12ada0
|
@ -1,5 +1,6 @@
|
|||
package net.mingsoft.config;
|
||||
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
|
@ -13,6 +14,7 @@ import springfox.documentation.spring.web.plugins.Docket;
|
|||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnProperty(prefix="ms",name = "swagger.enable", havingValue = "true")
|
||||
public class SwaggerConfig {
|
||||
|
||||
@Bean
|
||||
|
|
|
@ -6,8 +6,11 @@ server:
|
|||
logging:
|
||||
level:
|
||||
net.mingsoft: trace
|
||||
file: mcms.log
|
||||
file: mcms.log #日志文件存放位置
|
||||
path: log #日志压缩文件存放位置
|
||||
ms:
|
||||
swagger:
|
||||
enable: true #启用swagger文档
|
||||
manager:
|
||||
path: /ms
|
||||
view-path: /WEB-INF/manager
|
||||
|
|
Loading…
Reference in New Issue