blob: a2938f66dbf302d8ca9ed8092c736e618e437338 [file] [log] [blame]
Daniel Qianf6b89ce2018-07-17 18:40:57 +08001spring:
2 application:
3 name: sample-foo
Daniel Qian315ccce2018-07-20 10:09:00 +08004 mvc:
5 log-resolved-exception: true
Daniel Qianf6b89ce2018-07-17 18:40:57 +08006
7infras:
8 mvc:
Daniel Qianbf32f212018-07-19 17:00:29 +08009# 自定义error输出的例子
Daniel Qian6c6014c2018-07-18 11:32:42 +080010 custom-error:
Daniel Qian4875b6c2018-07-18 16:58:35 +080011 enabled: true
Daniel Qianf6b89ce2018-07-17 18:40:57 +080012 error-map:
Daniel Qian4875b6c2018-07-18 16:58:35 +080013 org.springframework.validation.BindException: Customized Bind Error Reason
14 include-message: true
15 include-errors: true
16 include-error: true
17 include-exception: true
18 include-path: true
19 include-timestamp: true
20 include-status: true
Daniel Qianbf32f212018-07-19 17:00:29 +080021
22# 控制日志级别的例子
23#logging:
24# level:
25# org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod: trace
26# org.springframework.web.servlet.DispatcherServlet: debug
27