안녕하세요.
오늘은 http://localhost:8080에 접속하였을 때,
http://localhost:8080/login로 redirect되는 것을 방지하는 방법을 알아보겠습니다.

build.gralde에 들어가서
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
이 코드 두줄을 주석처리 해주면 아예 창이 뜨지 않습니다.
또는,
아이디 : user
비밀번호 : [콘솔창에 출력되는 보안 비밀번호]
로 로그인 하면 됩니다.
출처: https://urakasumi.tistory.com/288 [개발자 블로그 다른 곳보다 10원이라도 비싸면 100% 환불:티스토리]
'SPRING' 카테고리의 다른 글
| [spring] MVC 패턴과 뷰 템플릿 (0) | 2024.07.12 |
|---|---|
| [spring] 스프링부트에서 localhost:8080/hello.html의 의미 (0) | 2024.07.11 |
| [spring ]스프링부트 자바 버전 충돌 해결하기 (0) | 2024.07.11 |