728x90
mybatis로 mapper.xml 경로가 안잡힐때가 있음
Invalid bound statement (not found): com.example.demo.mapper.BoardMapper.boardCount
이렇게, 그럴때
com.example.demo.mapper안에 mapper.java, mapper.xml을 놔두는게 아니고 -> 설정으로 안에 넣을 수도 있음. 해당 설정이 기억이 안나서.아래 resources 아래 경로에 com.example.demo.mapper 폴더를 각각 만들어주고 그안에 mapper.xml 넣어주면 됨.설정을 하지 않는 이상 위에 있어도 의미가 없음.
'개발 > Spring Boot' 카테고리의 다른 글
[Mybatis] Mybatis-config.xml setting 및 사용 이유 그리고 same sample (0) | 2022.12.01 |
---|---|
[Spring Boot] application.yml DB 연동 - Oracle에 log4jdbc 적용 (Oracle, MariaDB) (0) | 2022.11.28 |
springBoot 파일 용량 늘리기 (0) | 2022.09.21 |
프로젝트 이름 변경하니 발생한 에러 및 변경 방법. (0) | 2022.08.29 |
model 값 thymeleaf 값 담고 보내줄 때 사용 (0) | 2022.08.02 |