Add messagecode resolver format based on application property

This is for issue https://github.com/spring-projects/spring-boot/issues/670