Advertisement
7isenko

configure(final HttpSecurity http)

Mar 26th, 2020
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.     @Override
  2.     protected void configure(final HttpSecurity http) throws Exception {
  3.         http.csrf().disable()
  4.                 .authorizeRequests()
  5.                 .antMatchers("/", "/index** ", "/login**", "/static/** **", "/** .js", "/** .json", "/** .ico").permitAll()
  6.                 .antMatchers("/main**", "/points**", "/logout**").authenticated()
  7.                 .and().logout()
  8.                 .logoutUrl("/logout")
  9.                 .deleteCookies("JSESSIONID");
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement