无法配置 CAS 数据库身份验证

Unable to Configure CAS Database Authentication

以下this tutorial我无法配置数据库配置。

使用 cas-overlay,我已将设置添加到 cas.properties 文件,但是当我 运行 项目时,它无法验证。

我认为设置没有完全加载,因为我的 cas.authn.jdbc.query[0].passwordEncoder.type=BCRYPT 设置没有加载。

我来这个蛮绿的,所以感觉文档有差距

我想通了我的问题。不一定 cas.properties 文件是错误的。我实际上缺少导入 JDBC 支持的依赖项。

他们的文档读起来像是受支持,但假设 reader 知道添加依赖项。

已将此添加到我的叠加层 pom.xml

<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-jdbc</artifactId>
    <version>${cas.version}</version>
</dependency>