[help] c3p0:JDBC driver, cannot unregister when the Web application stops. To prevent memory leaks, the JDBC driver has been forcibly logged out.

using JDBCDataSouce is normal, startup and stop are normal, and no error is reported.
when switching to C3P0
clipboard.png

configuration in C3P0 XML:

<!-- -->
<bean id="dataSource_c3p0_properties"
 class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
    <property name="driverClass" value="${jdbc.driver}"/>
    <property name="jdbcUrl" value="${jdbc.url}"/>
    <property name="user" value="${jdbc.username}"/>
    <property name="password" value="${jdbc.password}"/>
</bean>

who can help me solve the following current problems? I"m free when I start. I report this warning every time I shut down.
I don"t know how to solve it. The online materials say that I want to cancel the registration, but that"s all JAVA programs.
mybatis doesn"t know how to solve the problem through configuration. Please help me with the ability. Thank you.

Mar.06,2021
Menu