스프링) SpringSecurity - 5) Security 권한 처리
·
자바 탐구
Security 권한 처리 SecurityConfig package com.example.security1.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.con..
스프링) SpringSecurity - 2) SecurityConfig 설정
·
자바 탐구
SecurityConfig 설정 IndexController package com.example.security1.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller //View를 return public class IndexController { //localhost:8080/ //localhost:8080 @GetMapping({"","/"}) public String index() { // 머스테치 기본폴더 ..
오지랖 토끼
'권한' 태그의 글 목록