본문 바로가기

jhhan의 블로그

검색하기
jhhan의 블로그
프로필사진 jhhan000

  • 분류 전체보기 (130)
    • Spring (44)
    • Vue.js (24)
    • Spring & Vue.js (6)
    • JAVA (14)
    • Kotlin (4)
    • Javascript (16)
    • HTML (1)
    • HTTP (14)
    • 보안관련 (3)
    • 기타 (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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 31
Tags
  • Vue.js
  • 의존성 주입
  • Singleton
  • Java
  • BEAN
  • vuex
  • 싱글톤
  • Excel
  • 프로토타입
  • di
  • Repository
  • HTTP
  • JPA
  • 캐시
  • vue-cli
  • javascript
  • HTTP 메서드
  • 라이프 사이클
  • Security
  • Kotlin
  • 로그인
  • Spring
  • cache
  • DB
  • dependency injection
  • Setter
  • Stateless
  • VUE
  • js
  • thymeleaf
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바