exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spr

Posted lvlv岁月流逝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spr相关的知识,希望对你有一定的参考价值。

spring cloud 项目使用maven 打包报错“No auto configuration classes found in META-INF/spring.factories”

在pom.xml中加入以下配置

 

  <plugin>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-maven-plugin</artifactId>
                        <configuration>
                            <fork>true</fork>
                            <mainClass>com.lv.DiscoveryApplicaion</mainClass>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>repackage</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

 

以上是关于exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spr的主要内容,如果未能解决你的问题,请参考以下文章

Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks

随手记录关于Factory method 'eurekaApplicationInfoManager' threw exception; nested exception is j(代

Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks

SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.Nes

解决Exception:Could not open Hibernate Session for transaction; nested exception is java.lang.NoClassD

nested exception is io.lettuce.core.RedisCommandTimeoutException