Not reading properties file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Not reading properties file

pctapan663
New to thymeleaf and while trying to read a properties file, I see the following in browser ??welcome.message_en_US?? Following are the relevant code details pom.xml-------------------------------------------------------------------------------- junit junit 4.12 test org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-devtools true appconfig.java---------------------- @Configuration public class AppConfig { @Bean public MessageSource messageSource() { ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource(); messageSource.setBasename("classpath:messages"); messageSource.setCacheSeconds(10); //reload messages every 10 seconds return messageSource; } } home.html------------------------------------- content of properties file: src/main/resources/messages/message_en_US.properties------------------------ welcome=This is a demo app! Any idea?