首先需要在pom.xml中加入对应的插件信息
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>org.example.flink.RecursionAlgorithmMain</mainClass>
</configuration>
</plugin>
然后需要在前面加入parent标签的导入包属性才能够导入包成功
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.0</version>
</parent>