본문 바로가기

java

Spring Boot Security Java Config

참고

 

https://spring.io/guides/gs/securing-web/

 

Securing a Web Application

this guide is designed to get you productive as quickly as possible and using the latest Spring project releases and techniques as recommended by the Spring team

spring.io

https://docs.spring.io/spring-security/site/docs/5.2.0.RELEASE/reference/htmlsingle/#jc-form

 

Spring Security Reference

The authenticator is also responsible for retrieving any required user attributes. This is because the permissions on the attributes may depend on the type of authentication being used. For example, if binding as the user, it may be necessary to read them

docs.spring.io

 

 

스프링 부트에서 시큐리티 자바클래스로 환경설정

 

 

spring-boot-starter-security 디펜던시 추가 

inMemoryAuthentication 사용하여 메모리에 계정정보 주입하여 임시 테스트

 

 

추가 

리소스 예외 처리 및 중복 슬래시 허용

 

예) 상용 예정 JAVA 설정