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.

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.
Description
While attempting to run MyRPC on my MAC computer with an M1 chip, I encountered an error message when trying to execute
NettyRpcServerMain2or using thegetBean()method from theSpringcontainer to obtain aNettyServerobject inNettyRpcServerMain.The error message indicated that there was

no qualifying bean of type 'com.wzq.rpc.remoting.transport.netty.server.NettyServer' available.as follow.To ensure that the corresponding object can be obtained correctly, it is recommended to add
@ComponentScan(basePackages = {"com.wzq.rpc"})to eitherNettyRpcServerMainorNettyRpcServerMain2.