Java uses maven to configure the spring-boot project and reports an error: Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found

1. Problem description

When using IDEA to develop a Maven project, in order to create a war package, I went to Baidu and added dependencies to the configuration file pom.xml. As a result, the configuration and packaging dependencies reported an error as follows. In fact, it does not affect the loading of maven and packaging, but it looks very uncomfortable. .
insert image description here

2. Problem cause & solution

Baidu searched and found that there is no version number configured, but when you configure a version number casually, you still find that an error is reported:
insert image description here
the core lies in thisThe version number should be the same as the previous spring-boot-starter-parent! ! !
insert image description here
After changing it, it was solved
insert image description here

Guess you like

Origin blog.csdn.net/caoyuan666/article/details/126470164