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?
之前碰到类似问题,本地开发可以访问ClassLoader.getSystemResource资源 SpringBoot打的war之后不能访问
改用ResourceUtils.getURL(usersExistingData).openStream()试试