Changeset 2269653 for src/main/java/com/example/moviezone/config
- Timestamp:
- 02/04/23 01:47:15 (23 months ago)
- Branches:
- master
- Children:
- adf250d
- Parents:
- eb226b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/config/WebSecurityConfig.java
reb226b2 r2269653 9 9 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; 10 10 import org.springframework.security.crypto.password.PasswordEncoder; 11 import org.springframework.web.servlet.config.annotation.EnableWebMvc; 11 12 12 13 13 14 @Configuration 14 15 @EnableWebSecurity 16 @EnableWebMvc 15 17 @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) 16 18 public class WebSecurityConfig extends WebSecurityConfigurerAdapter { … … 42 44 .logout() 43 45 .logoutUrl("/logout") 46 .clearAuthentication(true) 44 47 .invalidateHttpSession(true) 45 48 .deleteCookies("JSESSIONID")
Note:
See TracChangeset
for help on using the changeset viewer.