Skip to content

快速使用教程,基于spring boot项目

火羽 edited this page Jul 28, 2021 · 10 revisions

新版已去除spring依赖,不需要整合 如果需要在相应消息时候支持spring事务,可以参考以下整合步骤

1.实现业务处理IHandlerBusinessLayer,并加上@Component注解使之成为一个可注入bean

2.主类实现CommandLineRunner接口,在CommandLineRunner接口run方法,将注入的IHandlerBusinessLayer对象传入NetWorker构造方法

3.NetWorker使用,参考项目中快速教程

Clone this wiki locally