build.gradle에 Spring Reactive Web dependency 적용 시 Spring Web dependency와 충돌 - bondyuu/dodam GitHub Wiki

Trouble Shooting

Problem 1

  • Spring Reactive Web dependency를 적용하고 WebSocketHandler를 상속받아 채팅 기능을 구현할 수 있다.
  • Spring MVC에 채팅 기능을 적용할 경우 Spring Reactive Web dependency와 Spring Web dependency가 충돌해 채팅 기능에 문제가 발생한다.



Cause of the Problem 1

  • WebMVC dependecy와 WebFlux dependency가 모두 존재하는 경우 애플리케이션 타입이 "SERVLET"으로 설정된다. 즉, WebMVC 기반으로 스프링이 실행된다.

Solution of the Problem 1

  • WebMVC 형식으로 코드를 변환한다.

Result of the Problem 1

  • WebMVC 형식으로 코드를 변환할 경우 정상 작동할 것으로 예상한다.

Reference of the Problem 1

⚠️ **GitHub.com Fallback** ⚠️