spring / / 2023. 7. 17. 13:46

Spring Cloud Gateway에서 MacOSDnsServerAddressStreamProvider 에러가 나올 때

MacOS를 사용할 때 Spring Cloud Gateway에서 아래가 오류가 생기는 경우에는 maven 의존성을 추가하면 해결이 된다.

[오류 메시지]

Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS. Check whether you have a dependency on 'io.netty:netty-resolver-dns-native-macos'. Use DEBUG level to see the full stack: java.lang.UnsatisfiedLinkError: failed to load the required native library

아래의 의존성을 pom.xml에 추가하면 된다.

<dependency>
  <groupId>io.netty</groupId>
  <artifactId>netty-resolver-dns-native-macos</artifactId>
  <version>4.1.85.Final</version>
  <classifier>osx-aarch_64</classifier>
</dependency>
반응형
  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유