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