Ide 如何让IntelliJ理解注释

Ide 如何让IntelliJ理解注释,ide,annotations,intellij-idea,Ide,Annotations,Intellij Idea,我最近从使用Eclipse切换到IntelliJ,我更喜欢这种体验 但是,IDE不理解任何注释。我正在使用Spring@Autowired注释以及一些Spring-WS注释,IDE告诉我这些注释尚未解决 当使用Maven构建项目时,它构建得很好,并且在Eclipse中可以识别注释 我确信这是一个简单的设置,但是找不到关于如何设置它的任何信息。正如Peter所说,正确导入Maven项目时,应该正确识别依赖项。IntelliJ手册有一个。作为记录,在我们的项目pom中,我们有以下依赖项: &

我最近从使用Eclipse切换到IntelliJ,我更喜欢这种体验

但是,IDE不理解任何注释。我正在使用Spring@Autowired注释以及一些Spring-WS注释,IDE告诉我这些注释尚未解决

当使用Maven构建项目时,它构建得很好,并且在Eclipse中可以识别注释


我确信这是一个简单的设置,但是找不到关于如何设置它的任何信息。

正如Peter所说,正确导入Maven项目时,应该正确识别依赖项。IntelliJ手册有一个。

作为记录,在我们的项目pom中,我们有以下依赖项:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.ws</groupId>
        <artifactId>spring-ws-core</artifactId>
        <version>2.0.1.RELEASE</version>
    </dependency>

org.springframework
spring上下文
3.0.5.1发布
org.springframework
春季甲虫
3.0.5.1发布
org.springframework.ws
SpringWS核心
2.0.1.1发布

前两者在实现web服务之前就已经存在,因此web服务可能不需要严格使用它们。

您是否已将Maven项目正确导入IntelliJ?然后它应该正确地看到依赖项。如果我检查依赖项,那么我可以在那里看到SpringWS库,但是没有注释包。我是个白痴。断然的。IDE没有解析POM中的属性。当我将依赖项${spring.ws.version}更改为2.0.1.RELEASE时,它起了作用。我现在要解决的新问题。