Spring Cloud Gateway를 사용할 때
아래 이미지와 같은
MacOs 관련 에러가 발생합니다.
2024-08-07T16:12:53.294+09:00 ERROR 97288 --- [gateway-service] [ctor-http-nio-2] i.n.r.d.DnsServerAddressStreamProviders : 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
netty는 네트워크 애플리케이션 프레임워크로,
DNS 해석을 위해 네이티브 라이브러리를 로드하려고 할 때 문제가 발생합니다.
해결 방법은 Mac Os를 위한
netty-resolver-dns-native-macos
의존성을 build.gradle에 추가해 주면 됩니다.
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
'Mac M1 > Mac' 카테고리의 다른 글
Mac 터미널 AWS ssh 접속 방법 (0) | 2024.08.01 |
---|---|
[Mac OS] 맥, 맥북 백업, 타임머신 사용법 (0) | 2022.12.07 |
맥, 맥북 mac 에서 아이폰 백업파일 삭제하는 법 (1) | 2022.08.14 |