jasypt - Spring boot not loading PropertySourceLoader - Stack Overflow
For what I can tell the SpringFactoriesLoader mechanism for factory PropertySourceLoader is only used by PropertySourcesLoader which in turn is ONLY used to load the application properties. Those are either application.properties, application.yml, or application.yaml. So for your example just add a file application.properties to your classpath and you'll get the exception you are expecting. What I don't know is why other property source import mechanisms such as using annotation @PropertySource are not going through PropertySourcesLoader to take advantage of the factories loaders and override mechanism.
Read full article from jasypt - Spring boot not loading PropertySourceLoader - Stack Overflow
No comments:
Post a Comment