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