
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'
}
오라클 포트 겹침 등 다양한 이유들이 있었지만 나는 이것으로 바로 해결했다. 다시 채팅 공부하러 고고...
'개발과 > "Spring"이 왔나 봄' 카테고리의 다른 글
| QueryDSL 정리 (0) | 2023.12.04 |
|---|---|
| 첫 Mini project 자랑? 인증? ㅎㅎㅎ (0) | 2023.05.11 |
| troubleshooting : http statusCode (0) | 2023.05.11 |
| 세번째 봄 : AllInOneController의 한계. (0) | 2023.04.21 |
| 두번째 '봄'(Spring) : JPA (0) | 2023.04.17 |