摘要: 正则在Java中检验yyyyMMddHHmmss import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexUtils { public static void main(String[] ar 阅读全文
posted @ 2022-03-03 21:59 小徐学狂 阅读(963) 评论(0) 推荐(0) 编辑
摘要: zookper+dubbo zookeeper下载地址 http://mirror.bit.edu.cn/apache/zookeeper/ <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo 阅读全文
posted @ 2021-01-11 23:01 小徐学狂 阅读(62) 评论(0) 推荐(0) 编辑
摘要: thyemleaf thymeleaf依赖 <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf-spring5</artifactId> </dependency> <dependency> <groupId>org 阅读全文
posted @ 2020-12-16 19:50 小徐学狂 阅读(965) 评论(0) 推荐(0) 编辑
摘要: Mybatis别名优化 1. 当实体类不多时,可以直接给每个表取别名 <typeAliases> <typeAlias type="com.xx.pojo.teacher" alias="Teacher"/> <typeAlias type="com.xx.pojo.course" alias="C 阅读全文
posted @ 2020-09-24 10:13 小徐学狂 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Mybatis的参数配置 1.mysql的参数配置 曾经的propertis driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mybatis?useSSL=true&amp;useUnicode=true&amp;charac 阅读全文
posted @ 2020-09-24 09:44 小徐学狂 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Cause: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcep 解决方法:在pom文件中加入下面代码 <properties> <project.build.sourceEncoding>UTF-8</proj 阅读全文
posted @ 2020-09-23 16:25 小徐学狂 阅读(2344) 评论(0) 推荐(0) 编辑
摘要: 报 java.lang.ExceptionInInitializerError 的常见解决方法 0. 如果你是遇到这个问题? java.lang.ExceptionInInitializerError Caused by: org.apache.ibatis.exceptions.Persisten 阅读全文
posted @ 2020-09-22 20:24 小徐学狂 阅读(10579) 评论(0) 推荐(0) 编辑
摘要: 出差冷知识之如何连如家房间WIFI 1、手机连接房间wifi 1.连接房间WiFi,如打开606,连接; 2.打开浏览器,弹出输入手机号,获取验证码; 3.连接成功! 2、笔记本连接房间wifi 1.打开笔记本wifi,随意连接一房间号wifi,如606; 2.打开浏览器,进入https://por 阅读全文
posted @ 2020-09-17 23:17 小徐学狂 阅读(4061) 评论(0) 推荐(0) 编辑
摘要: 使用命令行导出 mysqldump 命令行使用 # 备份数据 # mysqldump -h主机 -u用户名 -p密码 数据库 表名 > 物理磁盘位置/文件名 mysqldump -hlocalhost -uroot -p123456 school student >D:/a.sql # mysqld 阅读全文
posted @ 2020-09-13 09:15 小徐学狂 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 3、MySQL数据管理 3.1、外键(了解) 在创建表的时候,增加约束(麻烦) CREATE TABLE IF NOT EXISTS `student`( `id` INT(4) NOT NULL AUTO_INCREMENT COMMENT '学号', `name` VARCHAR(30) NOT 阅读全文
posted @ 2020-08-31 23:20 小徐学狂 阅读(129) 评论(0) 推荐(0) 编辑