๐Ÿ’ปCoding/๐Ÿ“• spring

[spring] ์˜ค๋ฅ˜ : java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession

์Œ์€์‘ 2022. 6. 29. 15:16
728x90
๋ฐ˜์‘ํ˜•
โœ… ์˜ค๋ฅ˜๋ช… : java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession

โœ… ๋ฌธ์ œ ์›์ธ
MyBatis์—์„œ DB ์ ‘๊ทผ์„ ์œ„ํ•ด SqlSession์„ ์ƒ์„ฑํ•œ ๋‹ค์Œ์—, App์ด ์ข…๋ฃŒ๋˜๋ฉด์„œ ์ƒ์„ฑ๋˜์—ˆ๋˜ SqlSession์„ ํ•ด์ œํ•˜๋ ค๊ณ 
ํ•˜๋ฉด์„œ ๋ฐœ์ƒ๋˜๋Š” Exception์ž…๋‹ˆ๋‹ค.


โœ… ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•
MyBatis์˜ ๋ฒ„๊ทธ pom.xml ํŒŒ์ผ์—์„œ mybatis-spring version์„ 1.2.4๋กœ ์ˆ˜์ • ํ›„ ์—…๋ฐ์ดํŠธ!

 

[MyBatis์˜ ๋ฒ„๊ทธ pom.xml ํŒŒ์ผ์—์„œ mybatis-spring version์„ 1.2.4๋กœ ์ˆ˜์ •]

728x90
๋ฐ˜์‘ํ˜•