Dbcp uses connection pooling do mybatis + spring integration, but there are requirements for jdk version. Therefore, you need to configure a version of jdk. In this article a deposit jdk version switching.
https://www.cnblogs.com/duzhaonan/p/9712272.html