阅读背景:

使用Spring启动加载器WarLauncher时如何在war文件之外加载属性文件?

来源:互联网 

I have created an executable war file by specifying WarLauncher (part of spring boot loader) as my start up class. It works fine when all configuration files (properties, spring context, etc) are part of my resources folder. I expect consumer of my war requiring control on the property file. Hence it is required to be loaded outside of war file. I am expecting the properties file in a config folder (deployed side by side with the war file). I have tried to add appropriate classpath entries to the manifest by making use of maven plugin but it did not worked.I have created an executable war file by specif




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: