Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- VUE
- thymeleaf
- 라이프 사이클
- Security
- Singleton
- Setter
- Stateless
- cache
- BEAN
- vue-cli
- Vue.js
- vuex
- 의존성 주입
- 싱글톤
- 캐시
- JPA
- Excel
- Repository
- HTTP 메서드
- di
- Kotlin
- 로그인
- 프로토타입
- Spring
- HTTP
- javascript
- js
- DB
- dependency injection
- Java
Archives
- Today
- Total
목록logout (1)
jhhan의 블로그
Spring Security(2)
Spring Security에 관해 좀 더 실제 코드를 살펴 보겠습니다. @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/adminOnly").hasAuthority("ROLE_ADMIN") .antMatchers("/**").permitAll() // 넓은 범위의 URL을 아래로 배치 .anyRequest().authenticated() // ? .and() .csrf().disable() .form..
보안관련
2020. 4. 23. 15:35