官方文档:http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file 一:更改程序入口类 Application.java 使其继承SpringBootServletInitializer,并重写configure方法 @SpringBootApplication public class Application extends SpringBoot…
报错内容:class path resource [client.p12] cannot be resolved to absolute file path because it does not reside in the file system 问题所在: 代码使用了 ResourceUtils.getFile("classpath:client.p12")访问文件 ,这个方法只能从类路径下获取文件,无法从jar包中获取,所以打成jar包后发布到windows系统,就报错找不到文件…