0
在編譯的時候,我收到錯誤屬性路徑是不確定的註釋類型RequestMapping
屬性路徑是不確定的註釋類型 RequestMapping
我有進口org.springframework.web.bind.annotation.PathVariable
,但我仍然面臨同樣的問題。
在編譯的時候,我收到錯誤屬性路徑是不確定的註釋類型RequestMapping
屬性路徑是不確定的註釋類型 RequestMapping
我有進口org.springframework.web.bind.annotation.PathVariable
,但我仍然面臨同樣的問題。
在pom.xml中檢查spring-web的依賴版本。我通過更改版本依賴性來解決它。以前它是4.1.4.RELEASE。
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.2.7.RELEASE</version>
</dependency>