Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个与我的 grails 应用程序一起运行的套接字程序。我的问题是,将数据从套接字获取到 grails 服务类的好的设计是什么。
传入的套接字数据-> Netty 解码器 java 类(在 java src 中)-> 如何将其发送到服务层?
引导类在预定义的端口启动套接字服务器引导。
在此先感谢亚伯拉罕 Menacherry
如果你把它变成一个弹簧组件,你可以在你的 Netty 解码器类中使用服务类,这里是一个例子。