java工作错误总结
1.访问接口出现以下错误
com.alibaba.dubbo.rpc.RpcException: Forbid consumer 192.168.200.126 access service com.summersoft.ts.cache.services.CacheService from registry 127.0.0.1:2181 use dubbo version 2.5.3, Please check registry access list (whitelist/blacklist).
原因:
方法一:
重启一下zookeeper,上main是zookeeper注册失败
方法二:
某个server工程没有加进tomcat启动
2.
需要在webapp的WEB-INF下面加web.xml