I created a Spring Boot web application that uses Thymeleaf as the template engine. I configured the MessageSource to look for messages in a subfolder:
MessageSource
And add this to your application.properties file
application.properties
#messages spring.messages.basename=i18n/messages
and store the file n the correct folder as specified above.
you don't need messageSource bean
messageSource