본문 바로가기

개발과/"Spring"이 왔나 봄

localhost:8080 로그인 창이 뜨는 문제

localhost:8080 로그인 창

SSE 채팅과 POLLING 채팅방식을 비교해보던중 thymleaf를 사용해 view를 위한 "chat_room html을 작성해놨고 로그인 페이지가 떠서 당황;; 사용자를 따로 만들어 놓지 않았던 상황이었던 나로써는 당황했다. 알고보니 spring security에서 자체적으로 접근을 막아논 것

build.gradle -> dependencies 에서 아래 설정을 해주었다.

//아래 시큐리티 관련 두줄을 주석 처리 후 해결 완료!
dependencies{
	implementation 'org.springframework.boot:spring-boot-starter-security'
	testImplementation 'org.springframework.security:spring-security-test'
}

 

오라클 포트 겹침 등 다양한 이유들이 있었지만 나는 이것으로 바로 해결했다. 다시 채팅 공부하러 고고...