【发布时间】:2014-08-02 05:11:56
【问题描述】:
Spring Security 和 PostgreSQL 真的不能使用 default schema,因为 "varchar_ignorecase" does not exist 部分无法替换吗?
我只是在测试默认设置:
auth.jdbcAuthentication()
.dataSource(dataSource)
.withDefaultSchema();
以下是错误:
原因:
org.springframework.beans.factory.BeanDefinitionStoreException: 工厂方法 [public javax.servlet.Filter org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.springSecurityFilterChain() throws java.lang.Exception] 抛出异常;嵌套异常是
org.springframework.jdbc.datasource.init.ScriptStatementFailedException: 资源类第 1 行 SQL 脚本语句执行失败 路径资源
[org/springframework/security/core/userdetails/jdbc/users.ddl]:创建 表用户(用户名 varchar_ignorecase(50)不为空主要 键,密码 varchar_ignorecase(500) 不为空,启用布尔值不 空值);嵌套异常是
org.postgresql.util.PSQLException:错误: 类型“varchar_ignorecase”不存在
【问题讨论】:
标签: spring spring-security postgresql-9.1