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