类的使用
org.springframework.context.NoSuchMessageException
使用NoSuchMessageException的程序包 程序包 说明 org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.web.servlet.tags This package contains Spring's JSP standard tag library for JSP 2.0+.org.springframework.context中NoSuchMessageException的使用
抛出NoSuchMessageException的org.springframework.context中的方法 修饰符和类型 方法 说明 StringMessageSource. getMessage(String code, Object[] args, Locale locale)Try to resolve the message.StringMessageSource. getMessage(MessageSourceResolvable resolvable, Locale locale)Try to resolve the message using all the attributes contained within theMessageSourceResolvableargument that was passed in.org.springframework.context.support中NoSuchMessageException的使用
抛出NoSuchMessageException的org.springframework.context.support中的方法 修饰符和类型 方法 说明 StringAbstractApplicationContext. getMessage(String code, Object[] args, Locale locale)StringAbstractApplicationContext. getMessage(MessageSourceResolvable resolvable, Locale locale)StringAbstractMessageSource. getMessage(String code, Object[] args, Locale locale)StringAbstractMessageSource. getMessage(MessageSourceResolvable resolvable, Locale locale)StringDelegatingMessageSource. getMessage(String code, Object[] args, Locale locale)StringDelegatingMessageSource. getMessage(MessageSourceResolvable resolvable, Locale locale)StringMessageSourceAccessor. getMessage(String code)Retrieve the message for the given code and the default Locale.StringMessageSourceAccessor. getMessage(String code, Object[] args)Retrieve the message for the given code and the default Locale.StringMessageSourceAccessor. getMessage(String code, Object[] args, Locale locale)Retrieve the message for the given code and the given Locale.StringMessageSourceAccessor. getMessage(String code, Locale locale)Retrieve the message for the given code and the given Locale.StringMessageSourceAccessor. getMessage(MessageSourceResolvable resolvable)Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance) in the default Locale.StringMessageSourceAccessor. getMessage(MessageSourceResolvable resolvable, Locale locale)Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance) in the given Locale.org.springframework.web.reactive.result.view中NoSuchMessageException的使用
抛出NoSuchMessageException的org.springframework.web.reactive.result.view中的方法 修饰符和类型 方法 说明 StringRequestContext. getMessage(String code)Retrieve the message for the given code, using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(String code, Object[] args)Retrieve the message for the given code, using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(String code, Object[] args, boolean htmlEscape)Retrieve the message for the given code.StringRequestContext. getMessage(String code, List<?> args)Retrieve the message for the given code, using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(MessageSourceResolvable resolvable)Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance), using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(MessageSourceResolvable resolvable, boolean htmlEscape)Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance).org.springframework.web.servlet.support中NoSuchMessageException的使用
抛出NoSuchMessageException的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 StringRequestContext. getMessage(String code)Retrieve the message for the given code, using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(String code, Object[] args)Retrieve the message for the given code, using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(String code, Object[] args, boolean htmlEscape)Retrieve the message for the given code.StringRequestContext. getMessage(String code, List<?> args)Retrieve the message for the given code, using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(MessageSourceResolvable resolvable)Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance), using the "defaultHtmlEscape" setting.StringRequestContext. getMessage(MessageSourceResolvable resolvable, boolean htmlEscape)Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance).StringRequestContext. getThemeMessage(String code)Retrieve the theme message for the given code.StringRequestContext. getThemeMessage(String code, Object[] args)Retrieve the theme message for the given code.StringRequestContext. getThemeMessage(String code, List<?> args)Retrieve the theme message for the given code.StringRequestContext. getThemeMessage(MessageSourceResolvable resolvable)Retrieve the given MessageSourceResolvable in the current theme.org.springframework.web.servlet.tags中NoSuchMessageException的使用
参数类型为NoSuchMessageException的org.springframework.web.servlet.tags中的方法 修饰符和类型 方法 说明 protected StringMessageTag. getNoSuchMessageExceptionDescription(NoSuchMessageException ex)Return default exception message.protected StringThemeTag. getNoSuchMessageExceptionDescription(NoSuchMessageException ex)Return exception message that indicates the current theme.抛出NoSuchMessageException的org.springframework.web.servlet.tags中的方法 修饰符和类型 方法 说明 protected StringMessageTag. resolveMessage()Resolve the specified message into a concrete message String.