Hibernate 6.0.0.Alpha9 无法解析 c3p0 DriverManagerDataSource

Hibernate 6.0.0.Alpha9 cannot resolve c3p0 DriverManagerDataSource

我一直在尝试将 Hibernate 从 Hibernate 5 更新到 6.0.0 Alpha9 版本,当我收到 hibernate-corehibernate-c3p0 都从 org.hibernate 迁移到org.hibernate.orm。但是当我在 Spring MVC 配置中这样做时,class import com.mchange.v2.c3p0.DriverManagerDataSource; 变得无法解决。它是从新版本中删除的还是我需要使用其他东西代替?

我目前将其用作 Spring Security 和 Liquibase 的数据源:

    @Bean(name = "dataSource")
    public DriverManagerDataSource dataSource() {
        DriverManagerDataSource driverManagerDataSource = new DriverManagerDataSource();
        driverManagerDataSource.setDriverClass( dataSourceDriverClass );
        driverManagerDataSource.setJdbcUrl( dataSourceUrl );
        driverManagerDataSource.setUser( dataSourceUsername );
        driverManagerDataSource.setPassword( dataSourcePassword );
        return driverManagerDataSource;
    }

依赖结构似乎已经改变,即依赖不再传递。您将必须添加显式依赖项 api 'com.mchange:c3p0:0.9.5.5'

<dependency>
  <groupId>com.mchange</groupId>
  <artifactId>c3p0</artifactId>
  <version>0.9.5.5</version>
</dependency>