-
Notifications
You must be signed in to change notification settings - Fork 319
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
ChatOperation中的方法调用 #15
Comments
请注意仔细的阅读源码那个operations方法是把对Operation接口的几种实现全部放在当前线程的ops中留着在ChatServerHandler中根据协议传过来的operation值获取对应的实现类的实例来处理相应的操作 |
恩 这个我知道 我想知道Operation接口的几种实现是什么时候放到当前线程的ops集合当中的呢? 没找到在哪块去操作的呢?? |
就是你说的ChatOperation中的operations()方法啊。 |
那operations方法是在哪里调用的呢?? |
这个operations方法不需要调用。上面有@bean修饰,就表示方法的返回对象是交给IOC管理的。请自行补一下spring boot知识。 |
好的好的 非常感谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想问一下ChatOperation中的operations()这个方法是在哪调用的吗?它里面的值是什么时候填充的呢??
The text was updated successfully, but these errors were encountered: