Caused by: java.lang.IllegalStateException: Cannot load keys from store: class path resource [keystore.jks]
解决:
keystore.jks文件放在resources目录下,有在pom配置制定配置文件的路径,否则识别不到配置文件。
<build> <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>**/*</include> </includes> </resource> </resources> <plugins> <!-- 生成主类 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>com.lan.AouthApplication</mainClass> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>