elasticsearch启动报initial heap size [1073741824] not equal to maximum heap size [2147483648]; elasticsearch启动报initial heap size [1073741824] not equal to maximum heap size [2147483648];
golang 反序列化出现json: cannot unmarshal string into Go value of type model.Phone golang 反序列化出现json: cannot unmarshal string into Go value of type
elasticsearch查询出现Limit of total fields 1000 has been exceeded elasticsearch查询出现Limit of total fields 1000 has been exceeded
Could not resolve placeholder ‘mail.sender‘ in value “${mail.sender}“ 偶然一次使用@Value来给参数设置初始化值(如下),但是项目启动一直报错:Could not resolve placeholder 'mail.sender' in value "${mail.sender}"经过一顿排查,原因是需要对@Value里的参数设置默认值,最简单的写法加上“:”即可。核对了application.yml配置,确认配置无误。
mongodb插入数据报Cannot create namespace testk2 in multi-document transaction 问题现象:当向mongodb插入数据报Cannot create namespace testk2 in multi-document transaction。原因分析:检查发现要插入的集合collection不存在,经搜索资料发现,在一个事务中,要操作的集合必须要先存在,事务不能在不存在的集合上进行相关操作。所以,问题原因就是要先把这个集合创建,然后再插入对应数据;