## 类的使用
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.context中NoSuchMessageException的使用

    抛出NoSuchMessageException的org.springframework.context中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | MessageSource.`getMessage(MessageSourceResolvable resolvable, Locale locale)` Try to resolve the message using all the attributes contained within the `MessageSourceResolvable` argument that was passed in.
    `String` | MessageSource.`getMessage(String code, Object[] args, Locale locale)` Try to resolve the message.

  - ### org.springframework.context.support中NoSuchMessageException的使用

    抛出NoSuchMessageException的org.springframework.context.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | MessageSourceAccessor.`getMessage(MessageSourceResolvable resolvable)` Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance) in the default Locale.
    `String` | AbstractApplicationContext.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
    `String` | AbstractMessageSource.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
    `String` | DelegatingMessageSource.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
    `String` | MessageSourceAccessor.`getMessage(MessageSourceResolvable resolvable, Locale locale)` Retrieve the given MessageSourceResolvable (e.g. an ObjectError instance) in the given Locale.
    `String` | MessageSourceAccessor.`getMessage(String code)` Retrieve the message for the given code and the default Locale.
    `String` | MessageSourceAccessor.`getMessage(String code, Locale locale)` Retrieve the message for the given code and the given Locale.
    `String` | MessageSourceAccessor.`getMessage(String code, Object[] args)` Retrieve the message for the given code and the default Locale.
    `String` | AbstractApplicationContext.`getMessage(String code, Object[] args, Locale locale)`
    `String` | AbstractMessageSource.`getMessage(String code, Object[] args, Locale locale)`
    `String` | DelegatingMessageSource.`getMessage(String code, Object[] args, Locale locale)`
    `String` | MessageSourceAccessor.`getMessage(String code, Object[] args, Locale locale)` Retrieve the message for the given code and the given Locale.