Daniel Qian | f6b89ce | 2018-07-17 18:40:57 +0800 | [diff] [blame] | 1 | spring: |
| 2 | application: |
| 3 | name: sample-foo |
Daniel Qian | 315ccce | 2018-07-20 10:09:00 +0800 | [diff] [blame] | 4 | mvc: |
| 5 | log-resolved-exception: true |
Daniel Qian | f6b89ce | 2018-07-17 18:40:57 +0800 | [diff] [blame] | 6 | |
| 7 | infras: |
| 8 | mvc: |
Daniel Qian | bf32f21 | 2018-07-19 17:00:29 +0800 | [diff] [blame] | 9 | # 自定义error输出的例子 |
Daniel Qian | 6c6014c | 2018-07-18 11:32:42 +0800 | [diff] [blame] | 10 | custom-error: |
Daniel Qian | 4875b6c | 2018-07-18 16:58:35 +0800 | [diff] [blame] | 11 | enabled: true |
Daniel Qian | f6b89ce | 2018-07-17 18:40:57 +0800 | [diff] [blame] | 12 | error-map: |
Daniel Qian | 4875b6c | 2018-07-18 16:58:35 +0800 | [diff] [blame] | 13 | 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 Qian | bf32f21 | 2018-07-19 17:00:29 +0800 | [diff] [blame] | 21 | |
| 22 | # 控制日志级别的例子 |
| 23 | #logging: |
| 24 | # level: |
| 25 | # org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod: trace |
| 26 | # org.springframework.web.servlet.DispatcherServlet: debug |
| 27 | |