报错信息:
Could not transfer artifact org.mybatis.spring.boot:mybatis-spring-boot-starter:pom:2.1.2 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
解决方式:
点击File——>Settings——>Build,Execution,Deployment——>Build Tools——>Maven——>Runner
找到VM Options,添加信息:
-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
最后,重新compile就行了