|
|
@@ -0,0 +1,61 @@
|
|
|
+server:
|
|
|
+ port: 80
|
|
|
+spring:
|
|
|
+ application:
|
|
|
+ name: imwork-silos
|
|
|
+ mvc:
|
|
|
+ pathmatch:
|
|
|
+ matching-strategy: ant_path_matcher
|
|
|
+ static-path-pattern: /**
|
|
|
+ resources:
|
|
|
+ static-locations: classpath:/static/,classpath:/business/
|
|
|
+ thymeleaf:
|
|
|
+ cache: false
|
|
|
+ encoding: UTF-8
|
|
|
+ mode: HTML5
|
|
|
+ prefix: classpath:/templates
|
|
|
+ suffix: .html
|
|
|
+#日志配置
|
|
|
+logging:
|
|
|
+ charset:
|
|
|
+ # 输出控制台编码
|
|
|
+ console: UTF-8
|
|
|
+ # 输出文件编码
|
|
|
+ file: UTF-8
|
|
|
+ logback:
|
|
|
+ rollingpolicy:
|
|
|
+ # 日志保存的天数
|
|
|
+ max-history: 15
|
|
|
+ # 单文件的大小,默认10M, 超过之后打包成一个日志文件
|
|
|
+ max-file-size: 10MB
|
|
|
+ # 打包文件格式,默认: ${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz,书写格式为:文件路径/文件名.%i.文件后缀,其中%i不可省去,否则无日志显示
|
|
|
+ # 例如: 日期为:2021/11/5 ,则打包文件之后为: log/ota.2021-11-05.0.gz,0表示日志的第一部分,后续就是,1,2,3...
|
|
|
+ # 如果是压缩包,里面会多一个名log/ota.2021-11-05.0的日志文件
|
|
|
+ # 如下面的例子,打包之后为: log/2021-11/ota.2020-11-5.0.log,这是一个日志文件
|
|
|
+ # file-name-pattern: /app/yssk/@artifactId@/%d{yyyy-MM-dd}/@artifactId@.%d{yyyy-MM-dd}.%i.log
|
|
|
+ file-name-pattern: "@base.logs.home@/%d{yyyy-MM-dd}/@artifactId@.%d{yyyy-MM-dd}.%i.log"
|
|
|
+ level:
|
|
|
+ root: INFO
|
|
|
+ org.springframework.web: error
|
|
|
+ # security 日志
|
|
|
+ org.springframework.security: error
|
|
|
+ org.hibernate: error
|
|
|
+ # mybatis日志
|
|
|
+ org.mybatis: error
|
|
|
+ javax.activation: info
|
|
|
+ org.apache.catalina: INFO
|
|
|
+ org.apache.commons.beanutils.converters: INFO
|
|
|
+ org.apache.coyote.http11.Http11Processor: INFO
|
|
|
+ org.apache.http: INFO
|
|
|
+ org.apache.tomcat: INFO
|
|
|
+ org.springframework: INFO
|
|
|
+ # 开启调试模式,打印sql
|
|
|
+ com.example.onecli.product.mapper: DEBUG
|
|
|
+ # 这里是自己的mapper包路径
|
|
|
+ top.imwork: info
|
|
|
+ pattern:
|
|
|
+ console: "%d{yyyy-mm-dd hh:mm:ss.sss} --> [%thread] %-5level %logger{50} - %msg%n"
|
|
|
+ file: "%d{yyyy-mm-dd hh:mm:ss.sss} --> [%thread] %-5level %logger{50} - %msg%n"
|
|
|
+ # 输出文件名及路径,不配置则不输出文件
|
|
|
+ file:
|
|
|
+ name: "@base.logs.home@/@artifactId@/@artifactId@.log"
|