Create a simple Maven project, modify pom.xml to add Spring Boot-related starter, as follows:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies>
This is the focus, but I found that I made a mistake when adding the Spring-boot-starter parent, with the following information: Error parsing processing instructions jump to definition in parent POm. Refer to the following figure:
Maybe maven got mad again. Using Alt +F5 to force update the maven project, it still reported an error. Finally, the jar package under the directory org/springframework/boot in the maven repository was deleted, and the error will not be reported when updating the maven project.