You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== Switch off the Spring Boot security configuration
1124
1107
If you define a `@Configuration` with `@EnableWebSecurity` anywhere in your application
@@ -1157,7 +1140,9 @@ use this in a webapp is to inject it into a void method in a
1157
1140
}
1158
1141
----
1159
1142
1160
-
1143
+
You will get the best results if you put this in a nested class, or a standalone class (i.e.
1144
+
not mixed in with a lot of other `@Beans` that might be allowed to influence the order of
1145
+
instantiation). The https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-web-secure[secure web sample] is a useful template to follow.
0 commit comments