I am trying to use properties from a .properties
file, but it doesn\'t seem to work.
Here is my code:
@Service(\"ServiceFTP\")
@Transact
In your configuration you have 2 PropertySourcesPlaceholderConfigurer
instances.
applicationContext.xml
infraContext.xml
By default a PlaceholderConfigurer
is going to fail-fast, so if a placeholder cannot be resolved it will throw an exception. The instance from the applicationContext.xml
file has no properties and as such will fail on all placeholders.
Solution: Remove the one from applicationContext.xml as it doesn't add anything it only breaks things.