From 5c75df84d091987577962c5a192e9988f66e25a6 Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Tue, 10 Feb 2015 23:42:22 +0800 Subject: [PATCH] Update 26.1.3. MessageCodesResolver.md --- IV. Spring Boot features/26.1.3. MessageCodesResolver.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IV. Spring Boot features/26.1.3. MessageCodesResolver.md b/IV. Spring Boot features/26.1.3. MessageCodesResolver.md index e69de29..084a6eb 100644 --- a/IV. Spring Boot features/26.1.3. MessageCodesResolver.md +++ b/IV. Spring Boot features/26.1.3. MessageCodesResolver.md @@ -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。