查看prepare sql流程,明确运行时执行的sql,传递的参数是什么 sql出问题了,这种方式定位问题是王道 17:07:51.137 [DEBUG] [org.mybatis.spring.transaction.SpringManagedTransaction.openConnection:86] - JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@ab5d8d] will not be managed by Spring 17:07:51.156 [DEBUG] [druid.sql.Statement.statementLog:134] - {conn-310005, pstmt-320008} created. update `busi_menu_visit` SET MENU_ID=?, WAITER_PRIV_ID=?, PM_VISIT=?, CM_VISIT=?, PM_WAITER_VISIT=?, CM_WAITER_VISIT=? where `ID`=? 17:07:51.162 [DEBUG] [druid.sql.Statement.statementLog:134] - {conn-310005, pstmt-320008} Parameters : [1, 1, 0, 0, 0, 0, null] 17:07:51.163 [DEBUG] [druid.sql.Statement.statementLog:134] - {conn-310005, pstmt-320008} Types : [INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, OTHER]
prepare sql
猜你喜欢
转载自curious.iteye.com/blog/2292670
今日推荐
周排行