Spring Boot No auto configuration classes found in META-INF/spring.factories

No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.        
at org.springframework.util.Assert.notEmpty(Assert.java:276)


小狼第一次接触springboot ,为了方便用的fatjar打包,结果出现这个问题,调整思路后在项目的pom.xml 修改如下代码之后用mvn package

然后运行命令 java -jar /opt/soft/elasticsearch_mongodb_test-0.0.1-SNAPSHOT.jar
org.springframework.boot
spring-boot-starter-parent
1.4.2.RELEASE
UTF-8
com.base.Application
org.springframework.boot
spring-boot-maven-plugin
1.5.1.RELEASE
repackage

你可能感兴趣的:(java)