-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
多个Module分别引用AndServer #236
Comments
代码贴一下。 |
app: SystemManageServer.java
SystemController.java
module: AfServer.ava
HeartbeatCallFunction.java
|
还是就是RestController里有推荐的回调处理方式没,因为不需要自己new,回调就写静态了,总感觉不对。对了,还有就是严老大你的Nohttp下载不了Ftp文件,yanzhenjie/NoHttp#229 |
不好意思,最近做双12比较忙,很少上来,回得慢很抱歉。 现在好了吗?你代码中的常量看不到是什么值,比如group_name,port这种关键信息,代码太多了,不好判断问题,你最好简单搞个demo测试下。 如果启动/Controller都是严格按照分组的,应该不会出现这个问题。 |
好的,谢谢严老大。我单独写个试试~ |
抱歉,2.1.1版本才彻底解决这个问题;现在你按照首页的指导,为项目添加插件依赖,并在每个module中应用这个插件就可以解决这个冲突问题了。 |
@yanzhenjie 严老大你回来了啊(。・ω・。)ノ♡,一直以为你弃坑了。好嘞,目前就单Module用着的,另一个走Socket了。还有不忙抽时间更新下NoHttp吧,虽然Retrofit也很香,但有些项目用NoHttp集成是真快~ |
arouter使用的时候分模块,在module中使用了插件和引用了包,也会出现404 Not Found |
app和module都引用了AndServer,AndServer.serverBuilder启动了不同的Group,分配在了不同的端口。
目前的情况是:app的build.gradle annotationProcessor "com.yanzhenjie.andserver:processor:$and_server"后,访问module的Server就提示:The resource [/xxx] is not found.找不到目录。
app的build.gradle 不配置annotationProcessor,访问app的Server就提示:The resource [/xxx] is not found.找不到目录。
查看了一下,代码是生成了的。
我该如何修改能让两个module都能同时启动并不冲突呢?
https://i.loli.net/2019/11/28/ZRBs3waiqCKf9Uo.jpg
https://i.loli.net/2019/11/28/ZRBs3waiqCKf9Uo.jpg
The text was updated successfully, but these errors were encountered: