728x90
반응형
[Spring Boot] RESTful Service 강의 정리 (9) - HAL Browser를 이용한 HATEOAS 기능 구현
[Spring Boot] RESTful Service 강의 정리 (8) - Monitoring APIs with Spring Boot Actuator [Spring Boot] RESTful Service 강의 정리 (7) - Configuring Auto Generation of Swagger Documentation / 개발자 도..
prinha.tistory.com
Implementing Basic Authentication with Spring Security
-> 자동으로 생성되는 password로 간단한 인증처리 구현
1) pom.xml add dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
2) 웹 서비스 호출을 위해 자동으로 생성된 password 복사
3) 웹브라우저를 요청하면 오류 발생 -> 인증되지않은 사용자(unauthorized)
4) 복사한 비밀번호를 입력해주고 재요청
728x90
반응형