给定一个字符串,打印输出有重复的字符和重复的次数,并且按照重复的次数升序输出
摘要:最近在面试,好多的面试题,笔试题,有的笔试题搜百度搜不到点子上的 这个刚开始看着很简单,后面说要排序,想起了用Collections里面自定义的比较器 代码: public class StringDemo { public static void main(String[] args) { Str
阅读全文
posted @
2019-11-30 18:33
夏目co
阅读(655)
推荐(0) 编辑
Failed to bind NettyServer on /10.254.4.57:20880, cause: Failed to bind to: /0.0.0.0:20880 配置dubbo遇到的问题
摘要:早上重新配置了一下dubbo,报了这个异常 Initialization of bean failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to start server ... Failed to bind N
阅读全文
posted @
2019-11-20 13:11
夏目co
阅读(3520)
推荐(0) 编辑
Feign远程调用,调用方法有返回值,没有返回原方法,Canal监听数据库发生的异常:end of stream when reading header,异常中还有“你的主机中的软件中止了一个已建立的连接”等信息
摘要:今天用canal来监听mysql binlog,使用feign远程调用, 请求过去,并且能查询到数据返回。 但是在调用方法处抛出异常,也就是不能走到下面的 if判断: 异常信息中提取大致: end of stream when reading header 你的主机中的软件中止了一个已建立的连接..
阅读全文
posted @
2019-11-03 23:22
夏目co
阅读(4483)
推荐(0) 编辑