๋ง์ด๋ฐํฐ์ค๋ฅผ ์ฐ๋ค ์์ฃผ ๋ณด๋ ์๋ฌ๋ผ ๊ธฐ๋กํจ
'org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)'
๋ฐ์ํ๋ ์ด์ ๋ ์๋์ ๊ฐ์
1. Mapper ์ธํฐํ์ด์ค ๋ฐ XML ์คํ
- id์ ์คํ๊ฐ ์์ ์ ์์
- ์ ์ธ๋ id๊ฐ mapper ์ธํฐํ์ด์ค์ ์ด๋ฆ๊ณผ ๋ค๋ฅธ์ง ํ์ธ
- ์ธํฐํ์ด์ค์ ์ด๋ฆ๊ณผ xml ํ์ผ์ ์ ์ธ๋ ์ด๋ฆ์ด ๋ค๋ฅธ์ง ํ์ธ
2. mapper-locations
- application.properties์ ์ ์ํ์ง ์์๊ฑฐ๋ ์๋ชป ์ ์ธ๋ ๊ฒฝ์ฐ์ ๋ฐ์
mybatis.mapper-locations:classpath:mapper/*.xml
3. ๋์ผํ ์ด๋ฆ, ๋ค๋ฅธ ํจํค์ง ๊ฒฝ๋ก
- mapper์ ์ด๋ฆ์ด ๊ฐ์ง๋ง ํจํค์ง ์ด๋ฆ์ด ๋ค๋ฅธ์ง ํ์ธ
4. DataSource Configuration
- DataSource๋ฅผ ์ค์ ํ๋ Confiuration ํด๋์ค ํ์ธ
5. yaml ํ์ผ ์คํ
- ๋ค์ฌ์ฐ๊ธฐ๊ฐ ์ ๋ชป๋์๋์ง ํ์ธ
- yaml ํ์ผ ์คํ ํ์ธ