Giter Site home page Giter Site logo

Comments (14)

noear avatar noear commented on July 20, 2024

http://solon.noear.org/article/178

这里有完整rpc开发说明

from solon.

noear avatar noear commented on July 20, 2024

要使用 solon rpc ,需要几点要求:
1.服务端是用 solon 开发的;rpc 服务的实现用 @remoting 注解
2.客户端是用 solon 开发的;rpc 服务的注入用 @NamiClient 注解(Nami 相当于是 Solon 的女朋友)

具体可以阅读上面的网页。

from solon.

noear avatar noear commented on July 20, 2024

如果想嵌到 springboot 项目里,会麻烦些。需要具体交流

from solon.

danielsawan avatar danielsawan commented on July 20, 2024

Oh so if i understand your answer we can't just use the Solon RPC client in another framework ? The client need also to be a Solon client ? We can't use Solon client in Struts / Spring etc ?

from solon.

danielsawan avatar danielsawan commented on July 20, 2024

even with SocketD ?

from solon.

noear avatar noear commented on July 20, 2024

也能在 springboot 里使用,但是会很麻烦,我没有开放这方面的资料。。。如果你使用 springboot ,建议还是使用 feign 做为客户端。

from solon.

noear avatar noear commented on July 20, 2024

solon rpc 是 interface 风格的,类似于 dubbo 。。。有自己的序列化要求,所以需要 solon 的服务端。

from solon.

noear avatar noear commented on July 20, 2024

谢谢你对 solon 项目的关注。。。可以系统的了解一下官网的内容:https://solon.noear.org

后续会推出英文版内容。

from solon.

noear avatar noear commented on July 20, 2024

浏览官网时,可以代用 google 浏览器的翻译进行阅读。//我是个不会英文的人

from solon.

noear avatar noear commented on July 20, 2024

这是配套的演示工程:https://github.com/noear/solon-examples

from solon.

danielsawan avatar danielsawan commented on July 20, 2024

我们需要这行命令来在 web 框架中启动 Solon 吗?

SolonApp client = Solon.start(Client.class, args, app -> app.enableHttp(false));

如果是,我们必须输入什么而不是 Client.class,因为 Web 框架中没有主类,只有“控制器方法”

from solon.

noear avatar noear commented on July 20, 2024

麻烦你说明一下,你现在是用什么框架做开发的?比如:springboot 项目?或者依赖 web.xml 的项目?

from solon.

noear avatar noear commented on July 20, 2024

这是基于 tomcat 容器 + web.xml 的示例项目:

https://github.com/noear/solon-examples/tree/main/3.Solon-Web/demo3019-web_tomcat

from solon.

danielsawan avatar danielsawan commented on July 20, 2024

Thank you it perfectly work !

from solon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.