@RestController public class RestControllerTest { @RequestMapping("/callApi.do") public String ApiTest(String str){ return str; } }
이런 원리로 메소드 안에서 처리해서 결과로 맞다 아니다를 리턴하면 되겠지...