Add a @EnableWebSecurity if it looks like the user needs one

If the user explicitly disables the basic security features and forgets to
@EnableWebSecurity, and yet still wants a bean of type
WebSecurityConfigurerAdapter, he is trying to use a custom
security setup and the app would fail in a confusing way without
this change.

Fixes gh-568
This commit is contained in:
Dave Syer
2014-03-25 12:16:31 +00:00
parent 60fe468af9
commit 809a5a711f
4 changed files with 29 additions and 4 deletions

View File

@@ -1,2 +1,3 @@
spring.thymeleaf.cache: false
debug: true
debug: true
security.basic.enabled: false