Update 26.1.3. MessageCodesResolver.md

master
qibaoguang 2015-02-10 23:42:22 +08:00
parent dbc13986fa
commit 5c75df84d0
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
### 26.1.3. MessageCodesResolver
Spring MVC有一个策略用于从绑定的errors产生用来渲染错误信息的错误码MessageCodesResolver。如果设置`spring.mvc.message-codes-resolver.format`属性为`PREFIX_ERROR_CODE`或`POSTFIX_ERROR_CODE`(具体查看`DefaultMessageCodesResolver.Format`枚举值Spring Boot会为你创建一个MessageCodesResolver。