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 |
Tags
- Express
- 리액트
- vue.js
- rabbitmq 에러
- ACCESS_REFUSED
- paraller
- REDIS
- 트리 회전
- VUE
- AWS
- 커스텀 로그인
- 리덕스 공식문서
- 컴포넌트 주도
- 리덕스
- 자바
- 애그리거트
- .getClass()
- 오라클
- Java Reflextion API
- 네임드 뷰
- react
- EBS
- quert
- forNmae()
- exiting abnormally
- 도커빌드
- redux
- 오라클 병렬처리
- $emit()
- 자료구조
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 |