您的位置:首页 > 编程语言 > Java开发

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

2017-02-20 12:03 651 查看
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

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.2.RELEASE</version>
<relativePath />
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>com.base.Application</start-class>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.1.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐