3
내가 아는 한 가지 방법으로 주석을 달고 2 개의 게시물을 얻을 수 있습니까?주석이 달린 게시물과 같은 방법으로 얻을
@RequestMapping(value = "/testonly",
method = RequestMethod.GET, RequestMethod.POST)
public String getSomething(){
}
내가 아는 한 가지 방법으로 주석을 달고 2 개의 게시물을 얻을 수 있습니까?주석이 달린 게시물과 같은 방법으로 얻을
@RequestMapping(value = "/testonly",
method = RequestMethod.GET, RequestMethod.POST)
public String getSomething(){
}
method
필드는 배열, 그래서이 작업을 기대 :
@RequestMapping(value = "/testonly",
method = { RequestMethod.GET, RequestMethod.POST })
그것은 모두 GET과 POST 같은 방법의 유형을 통과 안한다. GET과 POST를 모두 통과하면 예기치 않은 예외가 발생합니다.
감사합니다. Raja Sekhar.