- 博客(8)
- 资源 (3)
- 收藏
- 关注
原创 IDEA 多模块项目修改后需要从新打包才生效的问题
热乎的>>>>>>>1. ctrl+; 打开project settings2. 找到父级POM项目3. 右侧 Add Content Root 中删除掉子模块数据,最后只有一个路径4. 点击保存.5. 删除模块下的target 文件夹.6. 运行子模块启动方法.7. 查看子模块下的target 文件夹下是否有class...
2020-11-11 17:53:26
3497
原创 JAVA 大小端
A class file consists of a stream of 8-bit bytes. All 16-bit, 32-bit, and 64-bit quantities are constructed by reading in two, four, and eight consecutive 8-bit bytes, respectively. Multibyte data items are always stored in big-endian order, where the high
2020-06-03 13:43:47
463
原创 DateTime toString 周显示英文
最近上线了一个功能.做图标展示的.正式环境遇到个BUG DateTime.toString("EEEE")展示英文.初步推测是正式环境的机器上的环境变量 LANG 配置问题. 排查无果.后来记得SimpleDateFormat.format("EEEE")可以传个参数Locale之后找到DateTime.toString("EEEE",Locale.CHIN...
2019-03-11 15:23:12
501
原创 Lambda 简单用例
package com.lambda.demo;import com.lambda.demo.exception.CanNotGetUserExceptionSupplier;import com.lambda.demo.model.User;import com.lambda.demo.model.UserSupplier;import org.junit.Test;import...
2018-09-11 10:35:19
239
原创 SpringBoot&RabbitMQ 超简单实现
之前在springMVC 封装了一套RabbitMQ 供公司使用.二期的时候,提了一个需求. 不同的Queue 去push 数据怎么整贴代码启动类import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;/**...
2018-05-29 10:36:37
374
原创 Python 操作ES(elasticsearch-py)
http://elasticsearch-py.readthedocs.io/en/master/
2017-03-29 14:41:32
18510
原创 ElasticSearch 预加载(preloading fileddata)
ES 默认使用的是懒加载.当Search 请求过来时,才会将要查询的index 所有的数据加载到内存中做处理(一问:如果index数据超级大.是怎么处理的).这种情况下会出现一个问题: 当数据量大的时候,会有一个明显的等待.因为ES 需要先将对应index 数据加载到内存,然后才能做查询.这时,有三种解决办法:1. 饿加载2. 饿加载全局序数(二问: 这个全局序数,是怎么回
2017-03-27 19:10:34
4926
2
原创 Druid 入门Demo
import com.alibaba.druid.sql.ast.SQLCommentHint;import com.alibaba.druid.sql.ast.SQLExpr;import com.alibaba.druid.sql.ast.SQLOrderBy;import com.alibaba.druid.sql.ast.SQLStatement;import com.alibab
2017-03-23 17:06:22
4590
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人