Option One:
In the pom of the referenced module, add under the build-plugins-plugin tag<configuration><classifier>exec</classifier></configuration>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
Solution 2:
Enter the following command in the console to try to clear the Maven local repository and rebuild the project. Execute the following command in terminal to clear Maven's local repository
mvn dependency:purge-local-repository
third solution:
File————> Setting————> Runner————> 勾选delegate xxxxxxxxxxxxxxxx
Option 2 is strongly recommended