自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 mysql使用数据库连接池c3p0进行连接时出现的问题

版本c3p0jar包版本:c3p0-0.9.1.2.jarjdbc连接包:mysql-connector-java-5.1.7-bin.jar数据库mysql版本:8.0.12问题1:十二月 17, 2018 11:46:05 上午 com.mchange.v2.c3p0.DriverManagerDataSource ensureDriverLoaded警告: Could not ...

2018-12-17 12:16:12 2399 3

原创 事务特性&安全问题&隔离级别

事务特性 (ACID)原子性(Atomicity):事务中的逻辑要全部执行,不可分割。否则回滚。一致性(consistency):事务执行前后,数据的完整性保持不变。举个栗子:张三有1000元,李四有1000元。张三给李四转500元,转完之后,张三还剩500元,李四有1500元。转账前后,张三和李四的钱的总和都是2000元。不会发生变化。隔离性(isolation):一个事务在执行...

2018-12-16 19:48:23 194

原创 leetcode-64. Minimum Path Sum/最小路径和

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at an...

2018-12-03 12:56:20 110

原创 leetcode63-Unique Paths II/独特路径II

A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bot...

2018-12-03 12:54:21 154

原创 二叉树的右视图-leetcode199

给定一棵二叉树,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。示例:输入: [1,2,3,null,5,null,4]输出: [1, 3, 4]解释: 1 <--- / \2 3 <--- \ \ 5 4 <---这又是一道二叉树分层的题目,与...

2018-12-03 12:52:53 1162

原创 Failed to load class org.slf4j.impl.StaticLoggerBinder

今天用springBoot导包的时候出现了这个错误,查了官方文档后,下面是官方文档的修改建议:Failed to load class org.slf4j.impl.StaticLoggerBinderThis warning message is reported when the org.slf4j.impl.StaticLoggerBinder class could not be l...

2018-12-03 12:49:21 6973

原创 和为K的子数组-leetCode560

题目描述:给定一个整数数组和一个整数 k,你需要找到该数组中和为 k 的连续的子数组的个数。示例 1 :输入:nums = [1,1,1], k = 2输出: 2 , [1,1] 与 [1,1] 为两种不同的情况。说明 : 数组的长度为 [1, 20,000]。 数组中元素的范围是 [-1000, 1000] ,且

2018-12-03 12:36:45 277

原创 leetcode96-不同构的二叉搜索树的个数/卡特兰数

给出一个 n, 用二叉搜索树来存储1 … n,总共有多少种不同构的二叉搜索树?Example:输入: 3输出: 5解释:给出 n = 3, 总共有5种不同构的二叉搜索树: 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2...

2018-12-03 12:25:32 820

空空如也

空空如也

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

TA关注的人

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