欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Springboot中使用actuator工具時報Couldnotfindacceptablerepresentation怎么辦

這篇文章主要介紹“Springboot中使用actuator工具時報Could not find acceptable representation怎么辦”,在日常操作中,相信很多人在Springboot中使用actuator工具時報Could not find acceptable representation怎么辦問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”Springboot中使用actuator工具時報Could not find acceptable representation怎么辦”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!

創(chuàng)新互聯(lián)公司主要從事網(wǎng)站建設、網(wǎng)站設計、網(wǎng)頁設計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務。立足成都服務坪山,十年網(wǎng)站建設經(jīng)驗,價格優(yōu)惠、服務專業(yè),歡迎來電咨詢建站服務:18980820575

造成這種結果的原因是 ,Spring無法找到合適的視圖解析器  。

網(wǎng)上找了一圈都是說其他原因的解決方法。

自己debug一遍 ,其實很簡單。

由于我的項目使用了fastjsonConfig , 又指定了唯一的MediaType 為json ,

而actuator 需要的mediaType是 application/vnd.spring-boot.actuator.v2+json

所以添加mediaType即可

FastJsonHttpMessageConverter

 Springboot中使用actuator工具時報Could not find acceptable representation怎么辦

到此,關于“Springboot中使用actuator工具時報Could not find acceptable representation怎么辦”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續(xù)學習更多相關知識,請繼續(xù)關注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

分享標題:Springboot中使用actuator工具時報Couldnotfindacceptablerepresentation怎么辦
本文路徑:http://www.chinadenli.net/article12/pishdc.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供關鍵詞優(yōu)化全網(wǎng)營銷推廣動態(tài)網(wǎng)站商城網(wǎng)站網(wǎng)站內(nèi)鏈

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

h5響應式網(wǎng)站建設