摘要: 十进制转二进制 二进制转十进制 八进制转二进制 二进制转八进制 阅读全文
posted @ 2021-06-17 15:21 素净 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 一、es报错org.frameworkset.elasticsearch.ElasticSearchException: {"error":{"root_cause":[{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDE 阅读全文
posted @ 2021-05-10 16:23 素净 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: 最近开发一个项目,需要迁移大数据量,所以用到kafka,但消费速度一直不快,部分java代码如下 解释:服务端用kafkaTemplate去发送数据 解释:客户端开15个接收端去消费数据 但是消费端一直速度很慢,最后经过我们领导的指点,发现kafka有个参数partition需要调优。 百度了下相关 阅读全文
posted @ 2021-03-09 17:58 素净 阅读(3361) 评论(0) 推荐(0) 编辑
摘要: 因为数据库的wm_concat()函数返回的是VARCHAR2,但是我有个聚合操作,聚合后的参数长度超过4000,所以我需要写一个类似于wm_concat的函数,返回的是CLOB类型 我的报错sql如下: 下面讲解我的操作步骤: 先以sys用户授权: grant execute on dbms_lo 阅读全文
posted @ 2021-03-09 16:34 素净 阅读(963) 评论(0) 推荐(0) 编辑
摘要: 报错信息: Description: An attempt was made to call the method com.google.common.collect.FluentIterable.concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Lco 阅读全文
posted @ 2020-11-09 16:46 素净 阅读(2117) 评论(0) 推荐(0) 编辑
摘要: 代码逻辑如下: //xxx组织机构树形列表方法 public List<Organization> xxxTreeOrg(xxx xx){ //所有的组织机构list List<Organization> allOrganizationList = xxxDao.findAllOrgList(); 阅读全文
posted @ 2020-07-01 18:27 素净 阅读(1340) 评论(0) 推荐(0) 编辑
摘要: 导包: import org.json.JSONObject; 1.对象转string String string = JSONObject.toJSONString(T); 2.string转对象 T t = JSONObject.parseObject(pojo, T.tclass); 3.Li 阅读全文
posted @ 2020-06-05 16:12 素净 阅读(4566) 评论(0) 推荐(1) 编辑
摘要: SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX; 然后找到进程号trx_mysql_thread_id,然后执行: kill 进程号; 阅读全文
posted @ 2020-06-03 15:32 素净 阅读(996) 评论(0) 推荐(0) 编辑
摘要: 比如id设置成xxx+0001,且0001是递增的,那么0001如何递增为0002呢,方法如下: DecimalFormat decimalFormat = new DecimalFormat("0000"); //代表四位数 String maxSerialNumber = decimalForm 阅读全文
posted @ 2020-05-08 18:03 素净 阅读(981) 评论(0) 推荐(0) 编辑
摘要: httpClient模仿Postman的form-data格式 话不多说,直接上代码 依赖包: <!--集成httpclient--> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</ar 阅读全文
posted @ 2020-03-17 20:30 素净 阅读(22577) 评论(3) 推荐(1) 编辑