自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 MySQL隔离级别演示

CREATE TABLE `user_test` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `age` int(11) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 1

2022-03-13 00:46:43 167

原创 LinkedList和ArrayList的remove方法效率分析

ArrayList 与LinkedList源码remove方法效率分析LinkedList remove方法的源码/** * Removes the element at the specified position in this list. Shifts any * subsequent elements to the left (subtracts one from their indices). * Returns the element that was removed from th

2022-01-05 17:44:18 957

原创 ArrayDeque 的pop()和poll()方法

ArrayDeque 底层是双端队列的数据结构。java中队列和栈的实现一般都是使用集合ArrayDeque。下面记录一下ArrayDeque中pop() 和 poll()方法的使用。pop() 一般指弹栈 poll()指出队但是在双端队列集合中pop()方法不是弹栈的操作。// Java program to demonstrate the example // of T pop() method of ArrayDeque import java.util.*; public cl

2021-11-02 20:53:17 4211

原创 MySQL索引优化

1.索引优化1.1 单表优化CREATE TABLE IF NOT EXISTS `article`(`id` INT(10) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,`author_id` INT (10) UNSIGNED NOT NULL,`category_id` INT(10) UNSIGNED NOT NULL , `views` INT(10) UNSIGNED NOT NULL , `comments` INT(10) UNSI

2021-10-14 23:09:17 172

原创 MySQL关于Extra信息的Using where 和 Using index

Using where 表示使用where过滤Using index 表示使用了覆盖索引避免了回表查询有的博客认为 Using where 表示访问聚簇索引中的行数据 即回表。Using where 和 Using index 同时出现时 表示既使用覆盖索引避免回表又在行数据中做回表查询?显然是不对的。其实不必想的那么复杂 Using where 表示使用where过滤数据 Using index 表示使用覆盖索引避免回表(如果是主键索引查询则表示没有读取行数据)。案例如下:先给出见表语句C

2021-10-14 22:00:48 4528

原创 SpringBoot org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connecti

在使用SpringBoot框架连接MySQL数据库时 报错RuntimeException: Driver com.mysql.jdbc.Driver claims to not accept jdbcUrl 或org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection;原因是在数据库配置文件中url链接没有设置时区:将配置文件中的spring.datasource.url

2021-09-29 15:39:51 420

原创 SpringBoot Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found

这里写自定义目录标题SpringBoot 工程报Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found首先检查IDEA中Maven设置是不是使用了本地仓库在本地仓库中发现存在此插件将pom.xml文件中加入版本号 <build> <plugins> <plugin> <groupId>org.springframework.boot</gr

2021-09-29 14:26:24 220

空空如也

空空如也

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

TA关注的人

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