Commit 30ef12ad authored by sgjj's avatar sgjj

添加日志 文档开关

parent 834cb473
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment