java - How to pass into spring-boot context application properties location programmatically -


i using java-main , injected inside spring-boot container. using spring boot application properties configuration way:

@configuration @componentscan("com.mycompany") @propertysource("file:/users/tt/application.properties") public class springconfiguration { .. } 

that works fine. need hardcode application.properties path. there way give inject dynamically argument?

i want remind again spring-boot isnt running main container.. using it's libs inside java main process cant use spring-boot built-in functionality.

thanks, ray.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -