Skip to content
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

怎么知道启动成功了还是没启动成功? #3

Open
twl214175824 opened this issue May 31, 2019 · 1 comment
Open

怎么知道启动成功了还是没启动成功? #3

twl214175824 opened this issue May 31, 2019 · 1 comment

Comments

@twl214175824
Copy link

我把它导入到eclipse后,按照你的描述:
先启动服务端 me.anduo.rpc.server.core.RpcBootstrap
再启动测试 me.anduo.rpc.example.HelloServiceTest
并且在main函数里写了打印语句,但控制台并没有输出,我现在遇到的问题是,我搞不清它到底是启动成功了,还是没有启动成功?
请求指导,谢谢!

如图所示:

image

image

@cmgyqjj
Copy link

cmgyqjj commented Jul 17, 2023

报错:log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
可以通过资源目录下新建log4j.properties
并且增加以下内容解决:
log4j.rootLogger=DEBUG,A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n

并且本例中有一个书写错误,在me/anduo/rpc/server/core/RpcServer.java下
为了将RPC响应进行编码(为了返回响应)这里使用的是RpcDecoder解码器,而应该使用RpcEncoder编码器进行编码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants