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中加入以下配置

 

  
                        org.springframework.boot
                        spring-boot-maven-plugin
                        
                            true
                            com.lv.DiscoveryApplicaion
                        
                        
                            
                                
                                    repackage
                                
                            
                        
                    

 

转载于:https://www.cnblogs.com/lvlv/p/9114494.html

你可能感兴趣的:(exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spr...)