You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
cmgyqjj
changed the title
本地运行遇到的问题
an issue while running the application locally
Jul 18, 2023
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 thegetBean()
method from theSpring
container to obtain aNettyServer
object 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 eitherNettyRpcServerMain
orNettyRpcServerMain2
.The text was updated successfully, but these errors were encountered: