亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - How to obtain ClassLoader resources in advance when springboot uses container loading?
我想大聲告訴你
我想大聲告訴你 2017-05-17 10:00:13
0
1
804

Now directly after the springboot startup is completed, the ClassLoader.getSystemResource method is called again. The system resource cannot be obtained and is directly null. Is there any way to preload ClassLoader into a static variable or object when springboot starts?

我想大聲告訴你
我想大聲告訴你

reply all(1)
大家講道理

I encountered a similar problem before. Local development can access the ClassLoader.getSystemResource resource, but it cannot be accessed after the war created by SpringBoot.
Try using ResourceUtils.getURL(usersExistingData).openStream() instead

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template