posted 6 years ago
Hi,
I am trying to get a value from a property file using @Value("${propertyName}")
Before it wasn't able to get the value, so I added a PropertySourcesPlaceholderConfigurer to my ServletConfiguration. Doing this is throwing an exception that the ObjectMapper is null. If I just delete the PropertySourcesPlaceholderConfigurer bean configuration then it doesn't throw the exception anymore. The objectMapper is configured in the RootContextConfiguration.
The exception is being thrown when the ObjectMapper is being set down there at the bottom of configureMessageConverters.
I had never had any problem with the objectmapper until adding that propertysourceconfig bean in there.
Any guidance would be greatly appreciated!!!
thanks!!