minor fix

This commit is contained in:
DOHA 2018-09-16 22:59:43 +03:00
parent dffd6cc87d
commit 05bb91ffe9
1 changed files with 7 additions and 3 deletions

View File

@ -23,14 +23,18 @@ public class MainController {
@Qualifier("springSecurityFilterChain")
private Filter springSecurityFilterChain;
@RequestMapping(method = RequestMethod.GET, value = "/foos/{id}")
@RequestMapping(method = RequestMethod.GET, value = "/filters")
@ResponseBody
public Foo findById(@PathVariable final long id, HttpServletRequest request) {
public void getFilters() {
FilterChainProxy filterChainProxy = (FilterChainProxy) springSecurityFilterChain;
List<SecurityFilterChain> list = filterChainProxy.getFilterChains();
list.forEach(chain -> chain.getFilters()
.forEach(filter -> System.out.println(filter.getClass())));
}
@RequestMapping(method = RequestMethod.GET, value = "/foos/{id}")
@ResponseBody
public Foo findById(@PathVariable final long id, HttpServletRequest request) {
return new Foo("Sample");
}