解决:Whitelabel Error Page This application has no explicit mapping for /error...UnknownHostException
生活随笔
收集整理的這篇文章主要介紹了
解决:Whitelabel Error Page This application has no explicit mapping for /error...UnknownHostException
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
1. 我的情況 :
springcloud 實踐,啟動 ribbon 工程后,請求接口報錯:
Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Tue Jul 23 17:39:14 CST 2019 There was an unexpected error (type=Internal Server Error, status=500). I/O error on GET request for "http://client-one/seeParam": client-one;nested exception is java.net.UnknownHostException: client-one2. 原因? Language? level 設置有誤。
3. 項目 JDK 為1.8 ,故應該設置?Language? level 為 8 :
4. 重啟工程,重新注冊,消費服務成功。請求接口正常。
總結
以上是生活随笔為你收集整理的解决:Whitelabel Error Page This application has no explicit mapping for /error...UnknownHostException的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 傅里叶变换分类
- 下一篇: awk 中 {print $1} 什么意