import org.springframework无法在]中解决>> [

问题描述 投票:0回答:1
这是我的pom.xml文件。我正在使用eclipse。我正在尝试制作helloworld spring应用程序.Thttps://www.tutorialspoint.com/spring/spring_hello_world_example.htm

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>spring-boot-gradle</groupId> <artifactId>spring-boot-gradle</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <release>13</release> </configuration> </plugin> </plugins> </build> </project>

这是我的pom.xml文件。我正在使用eclipse。我正在尝试制作helloworld spring应用程序。T https://www.tutorialspoint.com/spring/spring_hello_world_example.htm 
java spring
1个回答
0
投票
您需要在pom.xml中声明对您的Maven项目的依赖关系。一旦更新了maven项目(右键单击项目,然后在maven选项内部更新项目)。这些jar将由您的项目管理,然后,只有您才能导入spring特定的类。您可以在pom.xml中声明依赖项,如下所示:
© www.soinside.com 2019 - 2024. All rights reserved.