簡體   English   中英

我怎樣才能go在IDEA上實現一個Thrift服務實現?

[英]How can I go to implementation of a Thrift service implementation on IDEA?

我用IDEA開了一個java的微服務項目。 有3個模塊:AServer、AClient、B,模塊AClient有thrift服務接口,模塊AServer有thrift服務接口在AClient中的實現。 模塊 B 調用 A 的 thrift 接口。

以前,當我在模塊B的調用語句上使用IDEA的“go to implementations”功能時,它可以導航到AServer模塊中的實現class。 我不知道會發生什么,現在當我點擊 ⌥⌘B 時,它只顯示在 AClient 中生成的 java 代碼,而不是在 AServer 中的實際實現,我怎樣才能讓它在 AServer 中“執行”class?

當您提交在 Bservice 中使用的 Aservice Jar 時,您應該將源代碼提交到 maven 存儲庫。在 Aservice 的 pom.xml 中添加標簽 distributionManagement。 然后下載Bservice的依賴源碼jars

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM