自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 java 枚举,反射,CompletableFuture组合实现异步运算

java 枚举,反射,CompletableFuture组合实现异步运算

2022-08-28 16:35:49 210 2

原创 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 354

原创 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 5078 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 146

原创 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 1481 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 1516

原创 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 255

原创 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 221

转载 将本地项目上传到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 172

原创 Springboot整合redis

1、准备下载安装redis。创建springboot项目。2、引入redis依赖 <!--redis--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri...

2020-02-17 16:56:44 79

原创 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 563 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 144

原创 学习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 183

转载 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 749 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 914

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除