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?
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