How to inject a custom Spring PropertySource into Environment in a non-web project? -
i have custom propertysource reads external source. inject spring environment
in non-web , non-spring-boot project.
i think there ways via applicationcontextinitializer
seems specific web application registration involves setting contextinitializerclasses
.
my use-case tests in small project require loading app context , need access properties set custom property source. mocking values not option , find if there's way register custom propertysource environment in non-web project?