环境:
SpringBoot 1.5.9
Mybatis-Plus 2.19
报错信息:
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘statement’ in ‘class org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy’
解决方法:
更换默认的数据库连接池,改成DBCP或者其他都可以
application.yml
spring:
#使用重构库
datasource:
url: jdbc:mysql://xxx
username: xxx
password: xxx
driver-class-name: com.mysql.jdbc.Driver
type: org.apache.commons.dbcp.BasicDataSource