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
报错: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
我把它导入到eclipse后,按照你的描述:
先启动服务端 me.anduo.rpc.server.core.RpcBootstrap
再启动测试 me.anduo.rpc.example.HelloServiceTest
并且在main函数里写了打印语句,但控制台并没有输出,我现在遇到的问题是,我搞不清它到底是启动成功了,还是没有启动成功?
请求指导,谢谢!
如图所示:
The text was updated successfully, but these errors were encountered: