Comments (14)
http://solon.noear.org/article/178
这里有完整rpc开发说明
from solon.
要使用 solon rpc ,需要几点要求:
1.服务端是用 solon 开发的;rpc 服务的实现用 @remoting 注解
2.客户端是用 solon 开发的;rpc 服务的注入用 @NamiClient 注解(Nami 相当于是 Solon 的女朋友)
具体可以阅读上面的网页。
from solon.
如果想嵌到 springboot 项目里,会麻烦些。需要具体交流
from solon.
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.
even with SocketD ?
from solon.
也能在 springboot 里使用,但是会很麻烦,我没有开放这方面的资料。。。如果你使用 springboot ,建议还是使用 feign 做为客户端。
from solon.
solon rpc 是 interface 风格的,类似于 dubbo 。。。有自己的序列化要求,所以需要 solon 的服务端。
from solon.
谢谢你对 solon 项目的关注。。。可以系统的了解一下官网的内容:https://solon.noear.org
后续会推出英文版内容。
from solon.
浏览官网时,可以代用 google 浏览器的翻译进行阅读。//我是个不会英文的人
from solon.
这是配套的演示工程:https://github.com/noear/solon-examples
from solon.
我们需要这行命令来在 web 框架中启动 Solon 吗?
SolonApp client = Solon.start(Client.class, args, app -> app.enableHttp(false));
如果是,我们必须输入什么而不是 Client.class,因为 Web 框架中没有主类,只有“控制器方法”
from solon.
麻烦你说明一下,你现在是用什么框架做开发的?比如:springboot 项目?或者依赖 web.xml 的项目?
from solon.
这是基于 tomcat 容器 + web.xml 的示例项目:
https://github.com/noear/solon-examples/tree/main/3.Solon-Web/demo3019-web_tomcat
from solon.
Thank you it perfectly work !
from solon.
Related Issues (20)
- 希望升级一下第三方库的依赖 HOT 4
- 任务发放:优化 onMissingBean 条件与 List[Bean] 注入的边界问题 HOT 2
- 同时有 queryString 和 from-data 参数时,Controller 方法中的参数无法正确注入 HOT 4
- 建议官网RPC未来支持高性能序列化框架-flatbuffers和simple-binary-encoding HOT 1
- Solon 框架可以增加Javalin容器支持 HOT 2
- 建议Solon 未来可以支持物联网MQTT协议 HOT 2
- 新增组件 Solon Cloud SnailJob HOT 2
- 申明:Solon 的社区活动主要在 GitEE(欢迎参与)
- 【任务发放】把 solon.test 里带的 HttpUtils 改为基于 smart-http 适配
- 【任务发放】添加 Solon Auth Server 模块
- 【任务发放】添加“@Destroy”注解支持 HOT 1
- 希望插件按需加载 HOT 2
- 希望增加热部署 HOT 5
- IOC包扫描时排队某些包 HOT 3
- 【任务发放】优化 List[Bean] 注入,支持排序 HOT 1
- 【任务发放】增加 @NamiService 注解,替代 @Remoting 注解(让 Nami 成为前后配套服务) HOT 1
- 建议未来nami RPC 支持-Aeron 协议、低延迟RPC
- 后扫描的包,依赖注入List对象为空 HOT 1
- 安卓中运行solon,发现bug HOT 6
- lettuce-solon-plugin native编译出来的包,无法注入配置 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solon.