CRUD2 [SpringBoot] Controller, Service, Dao 등과 Mapper(Mybatis) 의 type 관계 (오류해결) / CRUD 중 R이 예시 먼저.. 제가 오류가 난 상황을 설명드리겠습니다 Controller, Service, Dao에 public String selGridList() { return gridService.selGridList(); } 이런식으로 String으로 선언을 해줬습니다 하지만 Mapper에는.... 제가 이런식으로 선언을 했더군요.... Mapper의 resultType과 Controller, Service, Dao의 String 부분의 타입이 같아야했는데 아무생각없이 개발하고 있었더라구요.. Controller.java @RequestMapping(value= "/grid", method = RequestMethod.GET) public Map selGridList() { return gridService.selG.. 2023. 11. 28. GET / POST 방식과 차이점 GET은 서버의 리소스에서 데이터를 요청할 때 사용 POST는 서버의 리소스를 생성하거나, 수정할 때 사용 Http method post / get / put / delete CRUD Create -> POST Read -> GET Update -> PUT Delete -> DEL 우리가 개발할 때 board.jsp boardDetail.jsp localhost:8000/board.jsp -> POST localhost:8000/boardDetail.jsp?no=1 -> GET 2022. 10. 31. 이전 1 다음