Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void configure(HttpSecurity http) throws Exception {
- http.csrf()
- .disable()
- .apply(jwtConfigurator)
- .and()
- .sessionManagement()
- .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
- .and()
- .authorizeRequests()
- .antMatchers("/info/**").permitAll()
- .antMatchers("/api/**").authenticated()
- .and();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement