![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javaee
zky1103
命运以痛吻我,我必报之以歌
展开
-
JSON对象转java对象 JSON数组转LIST数组
/** * json数组转List */ List<Student> stus = (List<Student>)JSONArray.parseArray(array.toJSONString(), Student.class); /** * Json对象转java对象 */ Student stu = JSONObject.parseObject(...原创 2020-07-27 14:16:35 · 806 阅读 · 0 评论 -
mysql 脚本H2脚本代码,亲测可行
package com.cib.applicant.cib_evidence_extract;import com.google.common.base.Charsets;import com.google.common.io.Files;import java.io.File;import java.util.regex.Matcher;import java.util.regex.Pattern;/** <dependency> <gro原创 2020-07-27 13:33:19 · 624 阅读 · 1 评论 -
正则校验URL是否以http和https 开头
public static void main(String[] args) { String str = "hTTP://127.0.0.1:3000/abc/test.php"; //转换为小写 // str = str.toLowerCase(); String regex ="^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9...转载 2020-07-24 17:10:38 · 2238 阅读 · 0 评论 -
解决 No qualifying bean of type 问题
. spring boot项目@Autowired - No qualifying bean of type found for dependency1 . 主要就是检查是否在对应的类上添加了注解如:@Controller @Service @Reporsitry@Component2 . 启动类所在的位置是否在其他被扫描类的包的前面以下为根据具体选用情况而定, 多用优先级的顺序问题1 .是否使用在具体mapper上有到 @Mapper2 . 是否使用在application...原创 2020-07-16 00:39:13 · 4234 阅读 · 0 评论 -
The server time zone value ‘Coordinated Universal Time‘ is unrecognized or represents more than one
1、问题描述Failedjava.sql.SQLException: The server time zone value 'Coordinated Universal Time' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone2、解决方法jdbc:mysql://localhost原创 2020-07-16 00:27:39 · 571 阅读 · 0 评论 -
vue渲染列表时报错Avoid using non-primitive value as key, use string/number value instead.
vue渲染列表时报错Avoid using non-primitive value as key, use string/number value instead.遍历的时候不要使用key,使用String 或者Number类型来作为key<el-option v-for="item in accountList" :key="item" :label="item.accountWithName" :value="item.account"> </el-option>原创 2020-07-06 23:11:23 · 364 阅读 · 0 评论 -
idea全局搜索快捷键
1、全局搜索快捷键:CTRL+SHIFT+F2、全部替换快捷键:CTRL+SHIFT+R3、IDEA 全局搜索快捷键CTRL+SHIFT+F,不起作用 一般是 其他软件占用的这个快捷键;首先可以去看下 搜狗输入法 的繁简字体切换快...原创 2020-05-18 10:42:00 · 4889 阅读 · 0 评论 -
生成指定范围内的随机数
public static void main(String[] args) { Integer MAX = 100000; Integer MIN = 1; Random rand = new Random(); for (int i = 0; i < 1000; i++) { // randN...原创 2019-12-11 10:03:53 · 310 阅读 · 0 评论 -
匹配19开头或者20开头的年月日正则
(((19|20)[0-9]{2})(((0[13578]|1[02])((0[1-9])|([12][0-9])|(3[01])))|(((0[469])|11)((0[1-9])|([12][0-9])|30))|(02((0[1-9])|(1[0-9])|(2[0-8])))))|(((([2][0])00)|((19|20)(([02468][048])|([13579][26]))))(...原创 2019-12-05 12:07:07 · 1151 阅读 · 0 评论 -
java中try catch finally含有return
1、不管有没有异常,finally中的代码都会执行2、当try、catch中有return时,finally中的代码依然会继续执行3、finally是在return后面的表达式运算之后执行的,此时并没有返回运算之后的值,而是把值保存起来,不管finally对该值做任何的改变,返回的值都不会改变,依然返回保存起来的值。也就是说方法的返回值是在finally运算之前就确定了的。4、如果retur...原创 2019-12-03 13:01:05 · 124 阅读 · 0 评论 -
PDF转IMG
import java.awt.image.BufferedImage;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.util.ArrayList;import java.uti...原创 2019-11-15 13:52:50 · 293 阅读 · 0 评论 -
正则表达式匹配日期,支持闰年,格式为YYYYMMDD
([\d]{4}(((0[13578]|1[02])((0[1-9])|([12][0-9])|(3[01])))|(((0[469])|11)((0[1-9])|([12][0-9])|30))|(02((0[1-9])|(1[0-9])|(2[0-8])))))|((((([02468][048])|([13579][26]))00)|([0-9]{2}(([02468][048])|([1...原创 2019-10-13 20:05:47 · 676 阅读 · 1 评论 -
Java丨Cmd运行Jar出现乱码问题
Java丨Cmd运行Jar出现乱码问题java -Dfile.encoding=utf-8 -jar test.jar就能够在windows下以UTF-8的编码进行执行.原创 2019-07-29 21:52:08 · 522 阅读 · 0 评论 -
标题 ##搭建spring boot 2.0.3版本
使用alibaba的druid数据库连接池,com.github.pagehelper的分页插件,启动项目报错。部分错误日志如下:Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'data...原创 2019-04-29 00:06:59 · 145 阅读 · 0 评论 -
this.$confirm用法记录一下
this.$confirm用法:vue.$confirm('确定要删除该数据吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning'}).catch(_ => { do...原创 2019-04-17 13:34:04 · 23524 阅读 · 0 评论 -
SpringBoot项目的The temporary upload location ***is not valid 问题
日志信息:Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/dev1/testuser/management/uptmpfile] is not valid] with root cause原因是Syst...原创 2019-03-30 11:05:53 · 258 阅读 · 0 评论 -
文章标题
作者:知乎用户 链接:https://www.zhihu.com/question/19603341/answer/31007146 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。很多人明明很有能力,但在面试时不能很好的展现出来,26条面试漂亮回答,让你在面试时有效地展示自己的才华,把握机会。1、请你自我介绍一下自己好吗?回答提示:一般人回答这个问题过于平常,转载 2017-10-18 08:23:02 · 165 阅读 · 0 评论 -
欢迎使用CSDN-markdown编辑器
JAVA相关基础知识 1、面向对象的特征有哪些方面 1.抽象: 抽象就是忽略一个主题中与当前目标无关的那些方面,以便更充分地注意与当前目标有关的方面。抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象。 2.继承: 继承是一种联结类的层次模型,并且允许和鼓励类的重用,它提供了一种明确表述共性的方法。对象的一个新类可以从现有的类转载 2017-10-18 08:16:59 · 291 阅读 · 0 评论