版本: 3.3.1 druid: 1.1.21
com.alibaba druid 1.1.21
com.baomidou mybatis-plus-boot-starter 3.3.1 调用存储过程:
异常: 2020-03-07 16:11:54.731 DEBUG 8626 --- [nio-8080-exec-1] c.t.m.i.m.MemberMapper.proGetSerialNo : ==> Preparing: {call PRO_GET_SERIAL_NO (?,?)} 2020-03-07 16:11:54.799 ERROR 8626 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException:
Error querying database. Cause: java.sql.SQLFeatureNotSupportedException: prepareCall The error may exist in file [/Users/liangyongtong/javaspace/testshardingjdbc/target/classes/mybatis/member.info/MemberMapper.xml] The error may involve com.test.member.info.mapper.MemberMapper.proGetSerialNo The error occurred while executing a query SQL: {call PRO_GET_SERIAL_NO (?,?)} Cause: java.sql.SQLFeatureNotSupportedException: prepareCall ; prepareCall; nested exception is java.sql.SQLFeatureNotSupportedException: prepareCall] with root cause
java.sql.SQLFeatureNotSupportedException: prepareCall
Comment From: miemieYaho
SQLFeatureNotSupportedException,去找druid