Class is not a root resource. It, or one of its interfaces must be annotated with @Path:
生活随笔
收集整理的這篇文章主要介紹了
Class is not a root resource. It, or one of its interfaces must be annotated with @Path:
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
前些天發(fā)現(xiàn)了一個(gè)巨牛的人工智能學(xué)習(xí)網(wǎng)站,通俗易懂,風(fēng)趣幽默,忍不住分享一下給大家。點(diǎn)擊跳轉(zhuǎn)到教程。
報(bào)錯(cuò)如題:?Class is not a root resource. ?It, or one of its interfaces must be annotated with @Path:XXXX
這是一個(gè)dubbo服務(wù)暴露方式書(shū)寫(xiě)錯(cuò)誤導(dǎo)致 的報(bào)錯(cuò)。
在我的項(xiàng)目中有2種服務(wù)暴露方式:rest方式、rpc方式。
當(dāng)時(shí)是把一個(gè)rpc服務(wù)暴露的方式錯(cuò)寫(xiě)為rest 服務(wù)暴露方式。
改為rpc服務(wù)應(yīng)該使用的暴露方式即可。
總結(jié)
以上是生活随笔為你收集整理的Class is not a root resource. It, or one of its interfaces must be annotated with @Path:的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: c#读写xml文件
- 下一篇: 几个.net开发中常用的工具下载