Spring-boot加载resources下的文件

加载方式:

FileInputStream keyStoreIn = new FileInputStream(ResourceUtils.getFile("classpath:ca/clientKeystore.jks"));
FileInputStream trustStoreIn = new FileInputStream(ResourceUtils.getFile("classpath:ca/clientTruststore.jks"));
原文地址:https://www.cnblogs.com/yshyee/p/7665712.html