Skip to content

an issue while running the application locally #4

@cmgyqjj

Description

@cmgyqjj

Description

While attempting to run MyRPC on my MAC computer with an M1 chip, I encountered an error message when trying to execute NettyRpcServerMain2 or using the getBean() method from the Spring container to obtain a NettyServer object in NettyRpcServerMain.

The error message indicated that there was
no qualifying bean of type 'com.wzq.rpc.remoting.transport.netty.server.NettyServer' available. as follow.
image

To ensure that the corresponding object can be obtained correctly, it is recommended to add @ComponentScan(basePackages = {"com.wzq.rpc"}) to either NettyRpcServerMain or NettyRpcServerMain2.

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