IT'S DO
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 넣어주면 됨.설정을 하지 않는 이상 위에 있어도 의미가 없음. 

profile

IT'S DO

@멋진놈

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!