Add DEFAULT_USER_SCHEMA_DDL_LOCATION constant
Closes gh-10837
This commit is contained in:
@@ -113,7 +113,7 @@ In our example, we set up an https://docs.spring.io/spring-framework/docs/curren
|
||||
DataSource dataSource() {
|
||||
return new EmbeddedDatabaseBuilder()
|
||||
.setType(H2)
|
||||
.addScript("classpath:org/springframework/security/core/userdetails/jdbc/users.ddl")
|
||||
.addScript(JdbcDaoImpl.DEFAULT_USER_SCHEMA_DDL_LOCATION)
|
||||
.build();
|
||||
}
|
||||
----
|
||||
@@ -133,7 +133,7 @@ DataSource dataSource() {
|
||||
fun dataSource(): DataSource {
|
||||
return EmbeddedDatabaseBuilder()
|
||||
.setType(H2)
|
||||
.addScript("classpath:org/springframework/security/core/userdetails/jdbc/users.ddl")
|
||||
.addScript(JdbcDaoImpl.DEFAULT_USER_SCHEMA_DDL_LOCATION)
|
||||
.build()
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user