springboot2 [JAVA 스프링부트] controller와 viewController로 나누어 작업하기 @Slf4j @RestController @RequestMapping("/hhana/sys") @RequiredArgsConstructor public class HhanaController { private final HhanaService hhanaService; @PostMapping("/selectList.do") public Map selectList(HhanaVO hhanaVO) throws Exception { List selectList = hhanaService.selectList(hhanaVO); Map resultMap = new HashMap(); resultMap.put("list", selectList); return resultMap; } } Controller 컨트롤러 기본 .. 2023. 8. 2. JPA 검색 기능에 대하여! findBy, Containing, Between 오늘 어마어마한 걸 깨달았다 JPA로 검색기능을 구현하고 있는데 findBy컬럼명Containing만 쓰던 나는 왜 자꾸 오류가 나는지 Parameter value [%100%] did not match expected type [java.lang.Integer (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [%100%] did not match expected type [java.lang.Integer (n/a)] org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [%100%] did not match expected ty.. 2023. 4. 26. 이전 1 다음