ํ
์คํธ ์ค๋ฅ ใ
ใ
์ฌ๋ ค์ฃผ์ ์คํฌ๋ฆฐ์ท ์ค์MemberRepositroyV288๋ฒ๋ผ์ธ์์ try { pstmt = con.prepareStatement(sql); pstmt.setInt(1, money); pstmt.setString(2, memberId); int resultSize = pstmt.executeUpdate(); log.info("resultSize={}", resultSize); //์ฌ๊ธฐ์ con์ ๋ซ์๋ฒ๋ ธ๋ค์ close(con, pstmt, null); } ์ try๋ฌธ์์ ์ด๋ฏธ con์ด ๋ซํ๋ฒ๋ฆฌ๊ธฐ ๋๋ฌธ์ ์ดํ ์์
์์The object is already closed์๋ฌ๊ฐ ๋จ๊ณ ์์ด์~! Connection์ service๊ณ์ธต์์ ๋๊ฒจ์ฃผ๊ณ ๋ซ์์ฃผ๊ธฐ ๋๋ฌธ์ ์ close(con, pstmt, null); ๋ผ์ธ์ ์ง์ฐ์๋ฉด ์ ์ ์๋ ํ๊ฒ ์ต๋๋ค