接口 MessageSourceResolvable

    • 方法详细资料

      • getCodes

        String[] getCodes()
        Return the codes to be used to resolve this message, in the order that they should get tried. The last code will therefore be the default one.
        返回:
        a String array of codes which are associated with this message
      • getArguments

        Object[] getArguments()
        Return the array of arguments to be used to resolve this message.
        返回:
        an array of objects to be used as parameters to replace placeholders within the message text
        另请参阅:
        MessageFormat
      • getDefaultMessage

        String getDefaultMessage()
        Return the default message to be used to resolve this message.
        返回:
        the default message, or null if no default