pom.xml修改properties,增加这行
<start-class>com.eshore.main.SpringBootStarter</start-class>
或者
将
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${sprint.boot.version}</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
改成
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>com.eshore.main.SpringBootStarter</mainClass> </configuration> </plugin> </plugins> </build>