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>
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>
相关文章推荐
- META-INF/spring.factories中找不到自动配置类,No auto configuration classes found in META-INF/spring.factories.
- spring boot Configuration Annotation Proessor not found in classpath
- Spring Boot之 Configuration Annotation Proessor not found in classpath解决方法
- No mapping found for HTTP request with URI [/spring/WEB-INF/page/index.jsp] in DispatcherServlet with name &#39;spring&#39;
- spring boot Configuration Annotation Proessor not found in classpath
- 利用命令部署springBoot项目出现ERROR] No plugin found for prefix ‘spring-boot’ in the current的错误
- 【SpringBoot】Spring Boot Configuration Annotation Processor not found in classpath
- spring boot Configuration Annotation Proessor not found in classpath
- Spring Boot之No session repository could be auto-configured, check your configuration问题解决
- Spring Boot Configuration Annotion Processor not found in classpath
- SpringBoot问题之org.apache.ibatis.executor.ExecutorException: No constructor found in...的问题
- 警告: No configuration found for the specified action: '/sdoubleselect.jsp' in namespace: ''. Form act
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- No mapping found for HTTP request with URI [/spring/WEB-INF/page/index.jsp] in DispatcherServlet with name 'spring'
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/package/java/hibernat
- Pull error. No value for key branch.master.merge found in configuration
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- 使用Struts2的标签报“警告: No configuration found for the specified action: 'login.action' in ...”的处理方法
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法