- 博客(15)
- 收藏
- 关注
原创 java 枚举,反射,CompletableFuture组合实现异步运算
java 枚举,反射,CompletableFuture组合实现异步运算
2022-08-28 16:35:49
300
1
原创 MyBatis中的RowBounds
使用RowBounds分页查询实例: public List<ConfigEntity> selectConfigList(ConfigEntity configEntity, int limit, int start) { RowBounds rowBounds = new RowBounds(start, limit); return getSqlSession().selectList(NAME_SPACE + ".selectConfigList"
2020-12-21 21:54:22
448
原创 mysql查询连续时间段内的数据量的3种方法
DATE_FORMAT函数用于以不同的格式显示日期/时间数据。DATE_FORMAT(ACTUAL_ARRIVE_TIME,'%Y/%m/%d %H:%i:%s')用DATE_FORMAT()函数查询每小时的订单量:SELECT DATE_FORMAT(CREATE_TIME, '%Y-%m-%d %H') MIN5, COUNT(0)FROM ORDER_TABLEWHERE CREATE_TIME BETWEEN '2020-12-01 00:00:00'AND '2020-1
2020-12-15 21:51:20
7113
2
原创 使用java将字符串反转
这里提供三种方式实现字符串反转。使用 StringBuilder 或者 StringBuffer 的 reverse() 方法: public static void main(String[] s) { StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("header--"); //生成原始字符串 for (int i = 0 ;i <1
2020-11-16 22:53:57
208
原创 The expression ‘idList’ evaluated to a null value.
The expression ‘idList’ evaluated to a null value.报错代码 @Override public int updateForwardByID(List<Long> idList) { return this.getSqlSession().update(NAMESPACE+".updateForwardByID",idList); } <update id="updateForwardByID"
2020-11-12 15:31:11
1648
1
原创 HashMap中的transient关键字解惑
看HashMap源码的时候,看到如下定义transient Node<K,V>[] table;transient Set<Map.Entry<K,V>> entrySet;transient int size;transient int modCount;transient关键字有什么作用,HaspMap中为什么要使用呢?首先来了解transient关键字的作用:被transient修饰的属性,在序列化时,将不会被序列化。那为什么HashMap中要用t
2020-06-02 23:04:56
1724
原创 Mybatis逆向工程--用mybatis-generator-core-1.3.5.jar自动生成实体类
1、引入mybatis-generator-core和mysql-connector-java。 <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</ar...
2020-03-08 21:21:50
288
原创 windows安装zookeeper和dubbo-admin
1、下载zookeeper下载地址:http://mirrors.hust.edu.cn/apache/zookeeper/选择合适的版本。注意:版本3.5.5开始,名称带有bin的包才是经过二进制编译的,可以下载下来直接运行,而普通的tar.gz的包里面是是源码的包,不能直接食用。2、安装解压下载下来的包。进入到…/apache-zookeeper-3.5.6\apache-zook...
2020-03-03 23:20:39
258
转载 将本地项目上传到GitHub
参考自:https://www.cnblogs.com/du-hong/p/9921214.html1、登录GitHub,网址:https://github.com/2、新建一个项目填写完相应的信息Repository name: 仓库名称(输入名字,最好不要使用中文)Description(可选): 仓库描述介绍Public, Private : 仓库权限(公开共享,私有或指定合作...
2020-02-19 17:19:13
219
原创 Springboot整合redis
1、准备下载安装redis。创建springboot项目。2、引入redis依赖 <!--redis--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri...
2020-02-17 16:56:44
117
原创 window安装Rocketmq
1、下载下载地址:http://rocketmq.apache.org/dowloading/releases/选择版本如图:我这里下载binary。2、配置环境变量解压下载的压缩包。配置环境变量:变量名:ROCKETMQ_HOME变量值:MQ解压路径\MQ文件夹名 (如:D:\rocketmq-all-4.3.0-bin-release)注意变量值不要有空格。3、 启动3....
2020-02-15 21:22:55
657
1
原创 window安装Redis
1、下载redis官网: https://redis.io/redis官网只能下载Linux版本的,下载window的要在GitHub上下载;下载地址:https://github.com/microsoftarchive/redis/releases如图:选择版本,这里以3.2.100为例。我这里下载Redis-x64-3.2.100.msi。2、安装redis直接安装就行。3、...
2020-02-15 20:32:36
190
原创 学习Mybatis遇到的问题
在学习mybatis时遇到的一些错误:1、Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading ...
2019-03-13 14:02:18
255
转载 Deployment is out of date due to changes in the underlying project contents.
往Tomcat部署java项目的错误提示:Deployment is out of date due to changes in the underlying project contents.You'll need to manually 'Redeploy' the project to update the deployed archive.我先网上搜索了下,可是网上给的答案对我没用...
2018-12-04 16:24:46
878
1
原创 集成MyEclipse和Tomcat时,启动Tomcat时报错FileNotFoundException
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs\localhost_access_log.2018-11-09.txt (拒绝访问。)今天在集成MyEclipse和Tomcat时,配置了好之后,启动Tomcat时报错:Failed to open access ...
2018-11-09 14:53:46
977
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人