【发布时间】:2015-08-13 16:44:34
【问题描述】:
我一直在使用 Spring Security 提供的默认数据库模型来验证用户身份。我已经意识到 Spring Security 在为数据库引擎配置的默认模式中查找这些表。
现在,假设如下:
您正在使用 PostgreSQL,并且您有 2 个模式:schemaOne 和 schemaTwo,其中 schemaOne 被配置为引擎的默认模式。然后,假设您有一个使用 schemaTwo 的应用程序,那么您将需要 Spring Security 数据库模型位于该模式中。因此,一旦您尝试运行应用程序,Spring Security 将尝试在 schemaOne 中查找身份验证模型。
所以,我的问题是:有没有办法推动 Spring Security 使用与为数据库引擎配置的默认模式不同的模式?
谢谢。
【问题讨论】: