Java 无法解析org.springframework.boot.SpringApplication
我正在尝试使用SpringBoot(1.2.4.RELEASE)将web服务服务器作为独立应用程序运行。我已经审阅了spring网站提供的教程 但是在我的应用程序中,我无法在SpringBoot的任何API中找到org.springframework.boot.SpringApplication类 下面是我用于此目的的pom.xml文件:Java 无法解析org.springframework.boot.SpringApplication,java,spring,netbeans,spring-boot,spring-web,Java,Spring,Netbeans,Spring Boot,Spring Web,我正在尝试使用SpringBoot(1.2.4.RELEASE)将web服务服务器作为独立应用程序运行。我已经审阅了spring网站提供的教程 但是在我的应用程序中,我无法在SpringBoot的任何API中找到org.springframework.boot.SpringApplication类 下面是我用于此目的的pom.xml文件: <parent> <groupId>org.springframework.boot</groupId>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.2.4.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
org.springframework.boot
spring启动程序父级
1.2.4.1发布
org.springframework.boot
弹簧靴
org.springframework.boot
SpringBootStarterWeb
org.springframework.boot
springbootmaven插件
有谁能帮我找出这里面有什么问题。我把它修好了。使用mvn clean install后,它已开始工作 最初,它没有在项目依赖项中显示spring-boot-1.2.5.RELEASE.jar(SpringApplication类所属)。运行上述命令后,添加了此依赖项,现在工作正常