Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void configure(final HttpSecurity http) throws Exception {
- http.csrf().disable()
- .authorizeRequests()
- .antMatchers("/", "/index** ", "/login**", "/static/** **", "/** .js", "/** .json", "/** .ico").permitAll()
- .antMatchers("/main**", "/points**", "/logout**").authenticated()
- .and().logout()
- .logoutUrl("/logout")
- .deleteCookies("JSESSIONID");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement