笔记
秀发浓密的程序猿
这家伙很懒,啥都没写···
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
获取字符串中所有的中文字符(正则表达式)
1.java的replaceAll可以使用正则表达式的方式获取String newStr = str.replaceAll("[^\u4e00-\u9fa5]", "");2.Pattern类实现String regEx="[`~!@#$%^&*()+=|{}:;\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。,、?a-zA-Z0-9 ]"; Pattern c = Pattern.compile(regEx); Match原创 2022-04-22 10:40:21 · 3239 阅读 · 0 评论 -
请求地址时报错The request was rejected because the URL was not normalized
原因:你访问的地址有误,我的错误是//应该为/原创 2020-09-03 10:49:32 · 1646 阅读 · 0 评论 -
MYSQL执行计划字段详解
Mysql查看执行计划explain + sql :输出执行计划。explain extended + sql :会在 explain 的基础上额外提供一些查询优化的信息。紧随其后通过 show warnings 命令可以 得到优化后的查询语句,从而看出优化器优化了什么。额外还有 filtered 列,是一个百分比的值,rows * filtered/100 可以估算出将要和 explain 中前一个表进行连接的行数(前一个表指 explain 中的id值比当前表id值小的表)。在查询中的每个表会输原创 2020-07-14 20:37:49 · 905 阅读 · 0 评论 -
mysqladmin flush-hosts
(SQL执行方式执行一下语句)解决方法1:修改max_connect_errors的值(1)进入Mysql数据库查看max_connect_errors:> show variables like '%max_connect_errors%';(2)修改max_connect_errors的值:> set global max_connect_errors = 100;(3)查看是否修改成功> show variables like '%max_connect_errors%原创 2020-06-29 09:43:08 · 2457 阅读 · 0 评论 -
The error occurred while handling resultsmybatis java.lang.UnsupportedOperationException
本人亲测成功解决问题转载 2020-03-25 10:53:47 · 11494 阅读 · 1 评论 -
the manual that corresponds to your MySQL server version for the right syntax to use near ''id'。。。
INSERT INTO xf_solve_equip_tp ( 'id', 'userId', 'userName',)VALUES('123123','123123','13421')数据库报错如下:You have an error in your SQL syntax; check the manual that corresponds to your MySQL se...原创 2020-03-20 18:10:02 · 325 阅读 · 0 评论 -
时间格式化的注解
@DateTimeFormat(pattern = “yyyy-MM-dd HH:mm:ss”)@JsonFormat(pattern = “yyyy-MM-dd HH:mm:ss”, timezone = “GMT+8”)private Date questiontime; // questiontime@DateTimeFormat(pattern = “yyyy-MM-dd HH:mm...原创 2020-03-05 16:14:20 · 597 阅读 · 0 评论
分享