0
我一直在使用Spring Security提供的默認數據庫模型來驗證用戶身份。我意識到Spring Security會在爲數據庫引擎配置的默認模式中查找這些表。Spring Security默認數據庫身份驗證模式
現在,假設如下:
您與PostgreSQL的工作,你有2個模式:schemaOne和schemaTwo,其中schemaOne配置爲dafault一個發動機。然後,假設您有一個使用schemaTwo的應用程序,那麼您需要將Spring Security數據庫模型放在該模式中。因此,一旦您嘗試運行應用程序,Spring Security將嘗試在schemaOne中查找身份驗證模型。
所以,我的問題是:有沒有辦法推動Spring Security使用與爲數據庫引擎配置的默認模式不同的模式?
謝謝。
也許有用:http://stackoverflow.com/questions/4168689/is-it-possible-to-specify-schema-when-connecting-to-postgres-with-jdbc – holmis83