Gets or Sets a value indicating whether to use the message code as default message instead of throwing a NoSuchMessageException. Useful for development and debugging. Default is "false".
true if use the message code as default message instead of throwing a NoSuchMessageException; otherwise,
Note: In case of a IMessageSourceResolvable with multiple codes (like a FieldError) and a MessageSource that has a parent MessageSource, do not activate "UseCodeAsDefaultMessage" in the parent: Else, you'll get the first code returned as message by the parent, without attempts to check further codes.
To be able to work with "UseCodeAsDefaultMessage" turned on in the parent, AbstractMessageSource contains special checks to delegate to the internal
GetMessageInternalmethod if available. In general, it is recommended to just use "UseCodeAsDefaultMessage" during development and not rely on it in production in the first place, though.
Alternatively, consider overriding the
GetDefaultMessagemethod to return a custom fallback message for an unresolvable code.