File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
spring-security-mvc-boot/src/main/java/org/baeldung/ip/web Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,18 @@ public class MainController {
2323 @ Qualifier ("springSecurityFilterChain" )
2424 private Filter springSecurityFilterChain ;
2525
26- @ RequestMapping (method = RequestMethod .GET , value = "/foos/{id} " )
26+ @ RequestMapping (method = RequestMethod .GET , value = "/filters " )
2727 @ ResponseBody
28- public Foo findById ( @ PathVariable final long id , HttpServletRequest request ) {
28+ public void getFilters ( ) {
2929 FilterChainProxy filterChainProxy = (FilterChainProxy ) springSecurityFilterChain ;
3030 List <SecurityFilterChain > list = filterChainProxy .getFilterChains ();
3131 list .forEach (chain -> chain .getFilters ()
3232 .forEach (filter -> System .out .println (filter .getClass ())));
33-
33+ }
34+
35+ @ RequestMapping (method = RequestMethod .GET , value = "/foos/{id}" )
36+ @ ResponseBody
37+ public Foo findById (@ PathVariable final long id , HttpServletRequest request ) {
3438 return new Foo ("Sample" );
3539 }
3640
You can’t perform that action at this time.
0 commit comments