Add secure sample with JDBC and data.sql

We can't easily solve the problem by not allowing Spring Security to
eagerly instantiate everything, but we can be defensive about data.sql
and make sure it is executed even if the listener isn't yet registered.

Fixes gh-1386
This commit is contained in:
Dave Syer
2014-08-25 17:16:32 +01:00
parent 00ef26599e
commit 607f78a779
12 changed files with 392 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
insert into users (username, password, enabled) values ('user', 'user', true);
insert into authorities (username, authority) values ('user', 'ROLE_ADMIN');