web

RestController import 할때 오류가 발생하는 경우.

반응형

RestController 사용을 위해 


org.springframework.web.bind.annotation.RestController 를 import할때


에러가 발생할 때가 있다.


그 경우에는 다음과 같이 maven의 


webmvc 버전을 맞쳐 주어야 한다.


<dependency>

<groupId>org.springframework</groupId>

<artifactId>spring-webmvc</artifactId>

<version>4.1.6.RELEASE</version>

</dependency>

반응형