1、pom.xml中配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
2、在pom.xml目录下。
3、mvn install
4、mvn spring-boot:run
看网上好多这个,但第3步都没说到。如果在运行第4步之前都没有做过第3步,则会出现
No plugin found for prefix 'spring-boot' in the current project and in the plugin groups