Skip to content

spring找不到被ServerEndPoint注解的类 #286

@mysunnyshine

Description

@mysunnyshine

版本: 0.12.0
复现过程:
定义一个被ServerEndPoint 注解的类,例如 NettyServer.class,在Controller中通过autowired或者resource 引入NettyServer,springboot启动报错,提示找不到NettyServer这个bean。

背景:
因为多实例部署,我是想暴露http接口,服务端下推的消息,通过redis找不到用户ws所在的机器,然后把请求打到这台机器。所以会在Controller 引用 NettyServer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions