Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ACCESS_REFUSED
- exiting abnormally
- 자바
- rabbitmq 에러
- vue.js
- REDIS
- 애그리거트
- AWS
- EBS
- $emit()
- VUE
- react
- 트리 회전
- 도커빌드
- quert
- 자료구조
- 네임드 뷰
- 컴포넌트 주도
- 리덕스
- 리덕스 공식문서
- Java Reflextion API
- .getClass()
- 오라클
- paraller
- 커스텀 로그인
- redux
- 오라클 병렬처리
- forNmae()
- 리액트
- Express
Archives
- Today
- Total
개발정리
[트러블 슈팅] sockJs /info 요청 404 error 본문
프론트 단에서 sockJs 객체를 생성해 connect 를 시도하였지만 /info 요청에대한 404(not found) errror 발생
해결
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws").setAllowedOriginPatterns("*")
.withSockJS();
}
@Override
public void configureMessageBroker(MessageBrokerRegistry registry) {
registry.setApplicationDestinationPrefixes("/app");
registry.enableSimpleBroker("/topic");
}
}
@EnableWebSocketMessageBroker 애너테이션을 붙여 해결했습니다.
'개발 > 중거거래사이트 클론' 카테고리의 다른 글
| [트러블 슈팅] Cannot read properties of undefined (reading 'userId') (0) | 2024.02.23 |
|---|---|
| [트러블 슈팅]-라우터 params undefined 문제 (0) | 2024.02.20 |
| [트러블 슈팅] jpa 양방향 매핑 조회시 stackoverflow 문제 (0) | 2024.02.18 |
| [트러블 슈팅] vue.js axios 인터셉터 설정 (0) | 2024.02.16 |
| [트러블 슈팅]로그인시 로그아웃으로 변경 (0) | 2024.02.05 |