Update 26.1.3. MessageCodesResolver.md

master
qibaoguang 2015-02-10 23:42:46 +08:00
parent 5c75df84d0
commit 5177ceb242
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
### 26.1.3. MessageCodesResolver
### 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。