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>
原文地址:https://www.cnblogs.com/lvlv/p/9114494.html
时间: 2024-11-03 01:12:45