forked from laowenruo/Spring-Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.sql
188 lines (170 loc) · 41.5 KB
/
blog.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 5.7.32 - MySQL Community Server (GPL)
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 11.0.0.5919
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- 导出 blog 的数据库结构
CREATE DATABASE IF NOT EXISTS `blog` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `blog`;
-- 导出 表 blog.t_blog 结构
CREATE TABLE IF NOT EXISTS `t_blog` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`content` text,
`first_picture` varchar(255) DEFAULT NULL,
`flag` varchar(255) DEFAULT NULL,
`views` int(11) DEFAULT NULL,
`appreciation` int(11) NOT NULL DEFAULT '0',
`share_statement` int(11) NOT NULL DEFAULT '0',
`commentabled` int(11) NOT NULL DEFAULT '0',
`published` int(11) NOT NULL DEFAULT '0',
`recommend` int(11) NOT NULL DEFAULT '0',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`type_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`description` text,
`tag_ids` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `KEY1` (`type_id`,`user_id`,`tag_ids`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 blog.t_blog 的数据:~14 rows (大约)
/*!40000 ALTER TABLE `t_blog` DISABLE KEYS */;
REPLACE INTO `t_blog` (`id`, `title`, `content`, `first_picture`, `flag`, `views`, `appreciation`, `share_statement`, `commentabled`, `published`, `recommend`, `create_time`, `update_time`, `type_id`, `user_id`, `description`, `tag_ids`) VALUES
(1, 'maven中静态资源的过滤', '# maven中静态资源的过滤\r\n\r\npom.xml文件中加入下面配置\r\n\r\n### 可以过滤java和resources文件夹里面所有的的.properties和.xml文件\r\n**directory:指定资源所在的目录,目录的路径是相对于pom.xml文件的\r\nincludes:指定要包含哪些文件**\r\n**filtering标签中:false表示不过滤,true表示过滤**\r\n\r\n```java\r\n <build>\r\n <resources>\r\n <resource>\r\n <directory>src/main/java</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n <resource>\r\n <directory>src/main/resources</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n </resources>\r\n </build>\r\n```\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584367888190&di=7855ff350e759b4b3de8c614978673b4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F07%2F20161207154722_Cmce5.thumb.400_0.gif', '原创', 1, 1, 1, 1, 1, 1, '2020-03-12 08:25:47', '2020-03-13 11:56:19', 3, 1, 'pom.xml文件中加入下面配置\r\n可以过滤java和resources文件夹里面所有的的.properties和.xml文件', '4'),
(2, '使用System.out.format()格式化输出', '#### JDK5.0允许java像C语言那样直接用printf()方法来格式化输出\r\n#### System.out.format()功能与printf()一样,可以使用%d,%f等参数。\r\n使用System.out.format()完成**左对齐,补0,千位分隔符,小数点位数,本地化表达**\r\n```java\r\npublic class TestNumber {\r\n \r\n public static void main(String[] args) {\r\n int year = 2020;\r\n //左对齐,补0,千位分隔符,小数点位数,本地化表达\r\n \r\n //直接打印数字\r\n System.out.println(year);\r\n \r\n //直接打印数字\r\n System.out.format("%d%n",year);\r\n //总长度是8,默认右对齐\r\n System.out.format("%8d%n",year);\r\n //总长度是8,左对齐\r\n System.out.format("%-8d%n",year);\r\n //总长度是8,不够补0\r\n System.out.format("%08d%n",year);\r\n //千位分隔符\r\n System.out.format("%,8d%n",year*10000);\r\n \r\n //保留5位小数\r\n System.out.format("%.5f%n",Math.PI);\r\n \r\n //不同国家的千位分隔符\r\n System.out.format(Locale.FRANCE,"%,.2f%n",Math.PI*10000);\r\n System.out.format(Locale.US,"%,.2f%n",Math.PI*10000);\r\n System.out.format(Locale.UK,"%,.2f%n",Math.PI*10000);\r\n \r\n }\r\n}\r\n```\r\n输出结果:\r\n\r\n```java\r\n2020\r\n2020\r\n 2020\r\n2020 \r\n00002020\r\n20,200,000\r\n3.14159\r\n31?415,93\r\n31,415.93\r\n31,415.93\r\n```\r\n', 'https://t1.picb.cc/uploads/2021/03/23/ZboTFi.jpg', '原创', 2, 1, 1, 1, 1, 1, '2019-03-12 13:42:14', '2019-03-13 12:00:08', 6, 1, 'JDK5.0允许java像C语言那样直接用printf()方法来格式化输出\r\nSystem.out.format()功能与printf()一样,可以使用%d,%f等参数。\r\n\r\n使用System.out.format()完成左对齐,补0,千位分隔符,小数点位数,本地化表达', '7'),
(3, 'Springboot中PageHelper 分页查询使用方法', '### 一:导入依赖\r\n\r\n```java\r\n<dependency>\r\n <groupId>com.github.pagehelper</groupId>\r\n <artifactId>pagehelper-spring-boot-starter</artifactId>\r\n <version>1.2.13</version>\r\n</dependency>\r\n```\r\n### 二:配置yml文件中PageHelper的属性\r\n\r\n```java\r\npagehelper: #分页插件\r\n helper-dialect: mysql\r\n reasonable: true\r\n support-methods-arguments: true\r\n params:\r\n```\r\n### 三:在controller类中使用,\r\n##### 1.在查询方法上调用PageHelper.startPage()方法,设置分页的页数和每页信息数,\r\n##### 2.将查询出来的结果集用PageInfo的构造函数初始化为一个分页结果对象\r\n##### 3.将分页结果对象存入model,返回前端页面\r\n```java\r\n@GetMapping("/types")\r\npublic String types(@RequestParam(required = false,defaultValue = "1",value = "pagenum")int pagenum, Model model){\r\n\r\n PageHelper.startPage(pagenum, 5); //pagenum:页数,pagesize:每页的信息数\r\n \r\n List<Type> allType = typeService.getAllType(); //调用业务层查询方法\r\n \r\n PageInfo<Type> pageInfo = new PageInfo<>(allType); //得到分页结果对象\r\n \r\n model.addAttribute("pageInfo", pageInfo); //携带分页结果信息\r\n \r\n return "admin/types"; //回到前端展示页面\r\n}\r\n```\r\n### 四:前端展示分页(thymeleaf+semantic-ui),这里ui用自己的就行,比如bootstrap或layui,主要是thymeleaf的使用。\r\n\r\n```java\r\n<table class="ui compact celled teal table">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>名称</th>\r\n <th>操作</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr th:each="type, iterStat : ${pageInfo.list}">\r\n <td th:text="${iterStat.count}">1</td>\r\n <td th:text="${type.name}">摸鱼方法</td>\r\n <td>\r\n <a href="#" th:href="@{/admin/types/{id}/input(id=${type.id})}" class="ui mini teal basic button">编辑</a>\r\n <a href="#" th:href="@{/admin/types/{id}/delete(id=${type.id})}" class="ui mini red basic button">删除</a>\r\n </td>\r\n </tr>\r\n </tbody>\r\n <tfoot>\r\n <tr>\r\n <th colspan="7">\r\n <div class="ui mini pagination menu" >\r\n <div class="item"><a th:href="@{/admin/types}">首页</a></div>\r\n <div class="item"><a th:href="@{/admin/types(pagenum=${pageInfo.hasPreviousPage}?${pageInfo.prePage}:1)}">上一页</a></div>\r\n <div class="item"><a th:href="@{/admin/types(pagenum=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}">下一页</a></div>\r\n <div class="item"><a th:href="@{/admin/types(pagenum=${pageInfo.pages})}">尾页</a></div>\r\n </div>\r\n <a href="#" th:href="@{/admin/types/input}" class="ui mini right floated teal basic button">新增</a>\r\n </th>\r\n </tr>\r\n </tfoot>\r\n</table>\r\n\r\n<div class="ui segment m-inline-block">\r\n <p >当前第<span th:text="${pageInfo.pageNum}"></span>页,总<span th:text="${pageInfo.pages}"></span>页,共<span th:text="${pageInfo.total}"></span>条记录</p>\r\n</div>\r\n```\r\n### 五:效果展示(pagesize设置为5的效果)\r\n![在这里插入图片描述](https://img-blog.csdnimg.cn/20200310105006168.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQyODA0NzM2,size_16,color_FFFFFF,t_70)\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584368536828&di=460fea188bd56a9f691d87e56622b891&imgtype=0&src=http%3A%2F%2Ftc.sinaimg.cn%2Fmaxwidth.800%2Ftc.service.weibo.com%2Fp3_pstatp_com%2F5ffc4f5b05b15c5642dd59cc7341cc71.jpg', '原创', 13, 1, 0, 1, 1, 1, '2019-03-14 17:05:58', '2021-03-23 21:25:36', 1, 1, '1.在查询方法上调用PageHelper.startPage()方法,设置分页的页数和每页信息数,\r\n2.将查询出来的结果集用PageInfo的构造函数初始化为一个分页结果对象\r\n3.将分页结果对象存入model,返回前端页面', '5,4'),
(4, 'thymeleaf语法及使用', '## 模板引擎\r\n\r\n简介:模板引擎(这里特指用于Web开发的模板引擎)是为了使用户界面与业务数据(内容)分离而产生的,它可以生成特定格式的文档,用于网站的模板引擎就会生成一个标准的HTML文档。\r\n模板引擎的思想:\r\n![在这里插入图片描述](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9pbWFnZXMuY25ibG9ncy5jb20vY25ibG9nc19jb20venltMTk5OS8xNjQ1NDE2L29fMjAwMjExMDk1OTQxMTQucG5n?x-oss-process=image/format,png)\r\nThymeleaf就是SpringBoot给我们推荐的一种模板引擎!\r\n\r\n## Thymeleaf模板引擎\r\n\r\n#### 1.使用Thymeleaf之前的步骤\r\n\r\n 1. Thymeleaf 官网:https://www.thymeleaf.org/\r\n 2. springboot项目直接引入依赖:\r\n```java\r\n<dependency>\r\n <groupId>org.springframework.boot</groupId>\r\n <artifactId>spring-boot-starter-thymeleaf</artifactId>\r\n</dependency>\r\n```\r\n3.非springboot项目直接引入依赖:\r\n\r\n```java\r\n<dependency>\r\n <groupId>org.thymeleaf</groupId>\r\n <artifactId>thymeleaf</artifactId>\r\n <version>2.1.4</version>\r\n</dependency>\r\n```\r\n 4.在thymeleaf的配置类ThymeleafProperties中我们可以发现:thymeleaf配置的默认前缀为:"classpath:/templates/",默认后缀为:".html",只要把html页面放在这个路径下,\r\n\r\nthymeleaf就可以帮我们自动渲染。\r\n\r\n```java\r\npublic class ThymeleafProperties {\r\n private static final Charset DEFAULT_ENCODING;\r\n public static final String DEFAULT_PREFIX = "classpath:/templates/";\r\n public static final String DEFAULT_SUFFIX = ".html";\r\n private boolean checkTemplate = true;\r\n private boolean checkTemplateLocation = true;\r\n private String prefix = "classpath:/templates/";\r\n private String suffix = ".html";\r\n private String mode = "HTML";\r\n...\r\n}\r\n```\r\n如图为用idea创建的springboot的项目结构:将html页面放在resources/templates中即可。\r\n![在这里插入图片描述](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9pbWFnZXMuY25ibG9ncy5jb20vY25ibG9nc19jb20venltMTk5OS8xNjQ1NDE2L29fMjAwMjExMDk1OTExMTMucG5n?x-oss-process=image/format,png)\r\n#### 2.Thymeleaf语法简单使用(th:text, th:utext, th:each)\r\n编写一个controller实现跳转到一个html页面,通过Model对象携带数据\r\n\r\n```java\r\n@Controller\r\npublic class HelloController {\r\n\r\n @RequestMapping("/success")\r\n public String success(Model model){\r\n //存入数据\r\n model.addAttribute("msg","<h1>Hello</h1>");\r\n model.addAttribute("users", Arrays.asList("小红", "小米","小白"));\r\n //classpath:/templates/success.html\r\n return "success";\r\n }\r\n}\r\n```\r\nsuccess.html\r\n\r\n```java\r\n<!DOCTYPE html>\r\n<html lang="en" xmlns:th="http://www.thymeleaf.org">\r\n<head>\r\n <meta charset="UTF-8">\r\n <title>Title</title>\r\n</head>\r\n<body>\r\n <h1>success</h1>\r\n\r\n <!--Thymeleaf语法:th:text就是将div中的内容设置为它指定的值-->\r\n\r\n <div th:text="${msg}">你好</div>\r\n <!--utext:会解析html,显示相应的效果-->\r\n <div th:utext="${msg}">你好</div>\r\n <!--each:遍历-->\r\n <h3 th:each="user:${users}" th:text="${user}"></h3>\r\n\r\n</body>\r\n</html>\r\n```\r\n通过http://localhost:8080/success路径访问到success.html页面,同时成功显示数据:![在这里插入图片描述](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9pbWFnZXMuY25ibG9ncy5jb20vY25ibG9nc19jb20venltMTk5OS8xNjQ1NDE2L29fMjAwMjExMTEyOTE3MTUucG5n?x-oss-process=image/format,png)\r\n#### 3.Thymeleaf基本语法(属性和表达式)\r\n**Thymeleaf标准表达式**\r\n \r\n\r\n 1. 变量表达式:**${ }**:用于前端获取后端传递的变量值\r\n\r\n \r\n\r\n 1. 选择表达式:***{ }**:用于绑定一个对象的属性\r\n\r\n \r\n\r\n 1. URL链接表达式:**@{ }**:用于链接\r\n\r\n \r\n\r\n 1. 条件表达式:**三目运算符(表达式 ?值(then):值(else))**\r\n\r\n \r\n\r\n\r\n \r\n**Thymeleaf属性标签:**\r\n![在这里插入图片描述](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9pbWFnZXMuY25ibG9ncy5jb20vY25ibG9nc19jb20venltMTk5OS8xNjQ1NDE2L29fMjAwMjExMTEzMTAxMTYucG5n?x-oss-process=image/format,png)\r\n\r\n \r\n\r\n', 'http://n.sinaimg.cn/sinacn20111/600/w1920h1080/20190331/0f41-huxwryw5226043.jpg', '原创', 5, 1, 1, 1, 1, 1, '2020-03-14 17:01:31', '2020-03-14 17:01:31', 1, 1, '简介:模板引擎(这里特指用于Web开发的模板引擎)是为了使用户界面与业务数据(内容)分离而产生的,它可以生成特定格式的文档,用于网站的模板引擎就会生成一个标准的HTML文档。Thymeleaf就是SpringBoot给我们推荐的一种模板引擎!', '5,3'),
(5, '利用Set集合去重', '### Set集合特点:\r\n#### ① 一次只存一个元素,\r\n\r\n#### ② 不能存储重复的元素\r\n\r\n#### ③ 存储顺序和取出来的顺序不一定一致不能存储重复的元素\r\n\r\n可以利用②这一特点,完成去重的功能。\r\n#### 一:Set集合去掉List集合中重复元素\r\n\r\n```java\r\npublic static void main(String[] args) {\r\n \r\n //利用set集合 去除ArrayList集合中的重复元素\r\n ArrayList<String> list = new ArrayList<>();\r\n list.add("1");\r\n list.add("1");\r\n list.add("2");\r\n list.add("2");\r\n list.add("3");\r\n list.add("3");\r\n list.add("4");\r\n list.add("4");\r\n System.out.println("去重前的List集合:"+list);\r\n \r\n Set<String> set = new HashSet<>();\r\n set.addAll(list);\r\n System.out.println("Set集合:"+set);\r\n \r\n list.clear(); // 清空原有元素 放入被list去重后的元素\r\n list.addAll(set);\r\n System.out.println("去重后的List集合:"+list);\r\n}\r\n```\r\n运行结果:\r\n\r\n```java\r\n去重前的List集合:[1, 1, 2, 2, 3, 3, 4, 4]\r\nSet集合:[1, 2, 3, 4]\r\n去重后的List集合:[1, 2, 3, 4]\r\n```\r\n\r\n#### 二:Set集合去掉字符串中重复子串\r\n\r\n```java\r\npublic static void main(String[] args) {\r\n String str = "aaab";\r\n System.out.println("字符串aaab 有非空子串a, b, aa, ab, aaa, aab, aaab,一共 7 个");\r\n \r\n Set<String> set = new HashSet<String>();\r\n for (int step = 0; step <= str.length() - 1; step++) {\r\n //扫描全部子串\r\n for (int begin = 0, end = 1 + step; end <= str.length(); begin++, end++) { \r\n String kid = str.substring(begin, end); //截取字符串子串\r\n set.add(kid); //将子串放入set集合,完成去重\r\n }\r\n }\r\n System.out.println("去除重复子串后的全部子串有:"+set.size()+"个");\r\n System.out.println("分别是:" + set);\r\n}\r\n```\r\n运行结果:\r\n```java\r\n字符串aaab 有非空子串a, b, aa, ab, aaa, aab, aaab,一共 7 个\r\n去除重复子串后的全部子串有:7个\r\n分别是:[aa, aaa, a, ab, b, aab, aaab]\r\n```\r\n\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584366026862&di=62fd65c3b51d4c6b8052f954ef561268&imgtype=0&src=http%3A%2F%2Fimg.article.pchome.net%2F00%2F38%2F63%2F92%2Fpic_lib%2Fs960x639%2F08s960x639.jpg', '原创', 13, 1, 1, 1, 1, 1, '2020-03-13 11:21:46', '2020-03-14 16:19:35', 1, 1, 'Set集合特点:\r\n① 一次只存一个元素,\r\n② 不能存储重复的元素\r\n③ 存储顺序和取出来的顺序不一定一致不能存储重复的元素', '6'),
(6, 'mybatis根据日期查询、查询日期并返回', '### 方法:\r\n\r\n#### 1.查询日期,返回日期字符串\r\n```handlebars\r\n//查询所有博客对应的年份,返回一个集合\r\nList<String> findGroupYear(); \r\n```\r\n#### 2.根据日期查询\r\n```handlebars\r\n//根据年份查询博客信息\r\nList<Blog> findByYear(@Param("year") String year); \r\n```\r\n\r\n\r\n### mybatis映射:\r\n\r\n\r\n```java\r\n<select id="findGroupYear" resultType="String">\r\n select DATE_FORMAT(b.update_time, \'%Y\') from t_blog b\r\n</select>\r\n\r\n\r\n<select id="findByYear" resultType="Blog">\r\n select b.title, b.update_time, b.id, b.flag\r\n from t_blog b\r\n where DATE_FORMAT(b.update_time, \'%Y\') = #{year}\r\n</select>\r\n```\r\n\r\n## 总结:\r\n**DATE_FORMAT(date,format):date表示日期,format表示显示的格式。**\r\n**该方法可以把date类型转换为String类型的字符串**\r\n', 'http://p.qpic.cn/dnfbbspic/0/dnfbbs_dnfbbs_dnf_gamebbs_qq_com_forum_202002_04_082156ifotspmtuzcffycn.jpg/0', '原创', 4, 1, 1, 1, 1, 1, '2020-03-21 11:54:41', '2021-03-19 18:04:14', 1, 1, 'mybatis根据日期查询、查询日期并返回\r\n方法:\r\n1.查询日期,返回日期字符串', '4'),
(7, 'maven中静态资源的过滤', '# maven中静态资源的过滤\r\n\r\npom.xml文件中加入下面配置\r\n\r\n### 可以过滤java和resources文件夹里面所有的的.properties和.xml文件\r\n**directory:指定资源所在的目录,目录的路径是相对于pom.xml文件的\r\nincludes:指定要包含哪些文件**\r\n**filtering标签中:false表示不过滤,true表示过滤**\r\n\r\n```java\r\n <build>\r\n <resources>\r\n <resource>\r\n <directory>src/main/java</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n <resource>\r\n <directory>src/main/resources</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n </resources>\r\n </build>\r\n```\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584367888190&di=7855ff350e759b4b3de8c614978673b4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F07%2F20161207154722_Cmce5.thumb.400_0.gif', '原创', 1, 1, 1, 1, 1, 1, '2020-03-12 08:25:47', '2020-03-13 11:56:19', 3, 1, 'pom.xml文件中加入下面配置\r\n可以过滤java和resources文件夹里面所有的的.properties和.xml文件', '4'),
(8, 'maven中静态资源的过滤', '# maven中静态资源的过滤\r\n\r\npom.xml文件中加入下面配置\r\n\r\n### 可以过滤java和resources文件夹里面所有的的.properties和.xml文件\r\n**directory:指定资源所在的目录,目录的路径是相对于pom.xml文件的\r\nincludes:指定要包含哪些文件**\r\n**filtering标签中:false表示不过滤,true表示过滤**\r\n\r\n```java\r\n <build>\r\n <resources>\r\n <resource>\r\n <directory>src/main/java</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n <resource>\r\n <directory>src/main/resources</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n </resources>\r\n </build>\r\n```\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584367888190&di=7855ff350e759b4b3de8c614978673b4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F07%2F20161207154722_Cmce5.thumb.400_0.gif', '原创', 1, 1, 1, 1, 1, 1, '2020-03-12 08:25:47', '2020-03-13 11:56:19', 3, 1, 'pom.xml文件中加入下面配置\r\n可以过滤java和resources文件夹里面所有的的.properties和.xml文件', '4'),
(9, 'maven中静态资源的过滤', '# maven中静态资源的过滤\r\n\r\npom.xml文件中加入下面配置\r\n\r\n### 可以过滤java和resources文件夹里面所有的的.properties和.xml文件\r\n**directory:指定资源所在的目录,目录的路径是相对于pom.xml文件的\r\nincludes:指定要包含哪些文件**\r\n**filtering标签中:false表示不过滤,true表示过滤**\r\n\r\n```java\r\n <build>\r\n <resources>\r\n <resource>\r\n <directory>src/main/java</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n <resource>\r\n <directory>src/main/resources</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n </resources>\r\n </build>\r\n```\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584367888190&di=7855ff350e759b4b3de8c614978673b4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F07%2F20161207154722_Cmce5.thumb.400_0.gif', '原创', 1, 1, 1, 1, 1, 1, '2020-03-12 08:25:47', '2020-03-13 11:56:19', 3, 1, 'pom.xml文件中加入下面配置\r\n可以过滤java和resources文件夹里面所有的的.properties和.xml文件', '4'),
(10, '蓝桥杯:基础练习 01字串(java)', '## 试题 基础练习 01字串\r\n \r\n### 资源限制\r\n时间限制:1.0s 内存限制:256.0MB\r\n### 问题描述\r\n对于长度为5位的一个01串,每一位都可能是0或1,一共有32种可能。它们的前几个是:\r\n\r\n00000\r\n\r\n00001\r\n\r\n00010\r\n\r\n00011\r\n\r\n00100\r\n\r\n请按从小到大的顺序输出这32种01串。\r\n\r\n### 输入格式\r\n本试题没有输入。\r\n### 输出格式\r\n输出32行,按从小到大的顺序每行一个长度为5的01串。\r\n### 样例输出\r\n00000\r\n00001\r\n00010\r\n00011\r\n<以下部分省略>\r\n\r\n#### 思路:\r\n**使用Integer.toBinaryString()将十进制整数转换为二进制字符串,再判断长度是否能整除5,在前面加0输出**\r\n\r\n```java\r\npublic class 字串01 {\r\n public static void main(String[] args) {\r\n \r\n for(int i = 0; i <= 31; i++) {\r\n String s = Integer.toBinaryString(i);\r\n int len = s.length();\r\n switch(len % 5) {\r\n case 1: s = "0000" + s;break;\r\n case 2: s = "000" + s;break;\r\n case 3: s = "00" + s;break;\r\n case 4: s = "0" + s;break;\r\n case 0: break;\r\n }\r\n System.out.println(s);\r\n }\r\n }\r\n}\r\n```\r\n\r\n**另一种方法,不用判断加0,也可以直接使用printf输出指定格式的整数:**\r\n```java\r\npublic class 字串01 {\r\n public static void main(String[] args) {\r\n \r\n for(int i = 0; i <= 31; i++) {\r\n String s = Integer.toBinaryString(i);\r\n int n = Integer.parseInt(s);\r\n System.out.printf("%05d\\n",n);\r\n }\r\n }\r\n}\r\n```\r\n\r\n', 'http://5b0988e595225.cdn.sohucs.com/images/20190112/12a825d7c0f94223a0b1fc3dcddc6570.jpeg', '原创', 0, 1, 1, 1, 1, 1, '2020-03-21 16:19:41', '2020-03-21 16:19:41', 6, 1, '问题描述\r\n\r\n对于长度为5位的一个01串,每一位都可能是0或1,一共有32种可能。它们的前几个是:\r\n\r\n00000\r\n\r\n00001\r\n\r\n00010\r\n\r\n00011\r\n\r\n00100\r\n\r\n请按从小到大的顺序输出这32种01串。', '7'),
(11, '安东尼经典语录', '我怕你说话,我怕你沉默。 \r\n我怕你来到,我怕你离开。 \r\n我怕抓紧你,我怕放走你。 \r\n我怕你看到我,我怕你无视我。 \r\n我怕你想念我,我怕你忘记我。 \r\n我怕你过于依赖我,我怕你不再需要我。 \r\n我怕你爱我,我怕你不爱我。 \r\n我怕你太爱我,我怕你不够爱我。\r\n\r\n不管昨夜经历了怎样的泣不成声 早晨醒来这个城市依然车水马龙\r\n\r\n不要让那个喜欢你的人 撕心裂肺地为你哭那么一次 因为 你能把他伤害到那个样子的机会 只有一次 那一次以后 你就从不可或缺的人变成可有可无的人了 即使他还爱你 可是 总有一些东西真的改变了\r\n\r\n应该趁着年轻 和喜欢的人一起 制造些比夏天还要温暖的事\r\n\r\n风不懂云的漂泊。天不懂雨的落魄。眼不懂泪的懦弱。所以你不懂我的选择。也可以不懂我的难过。不是每一个人都一定要快乐。不是每一种痛都一定要诉说\r\n\r\n后来,我终于能接受,我们不会再在一起这个实事。我想我唯一能做的就是,继承那些,你拥有的让我着迷的品质,好好地生活下去。\r\n\r\n如果你喜欢的人不喜欢你,那么就算全世界的人都喜欢你,还是会觉得孤独吧。If the person you like doesn\'t like you ,wouldn\'t it still be lonely even if the whole world loves you.\r\n\r\n那些 我们一直惴惴不安 又充满好奇的未来 会在心里隐隐约约地觉得它们是明亮的\r\n\r\n人生,总会有不期而遇的温暖,和生生不息的希望。\r\n\r\n其实我一直相信 等你出现的时候我就知道是你\r\n\r\n我谈过最长的恋爱,就是自恋,我爱自己,没有情敌。\r\n\r\n不知道如何爱你,看着你,是我唯一的方式。I don\'t know how to love you ,looking at you is the only way i know\r\n\r\n我所知道的关于你的事情 就只有天气预报了\r\n\r\n我觉得 我们俩之间就像喝酒 我干杯 你随意\r\n\r\n玫瑰当然爱小王子 \r\n不过当你真的喜欢一个人的时候 就会想很多 会很容易办蠢事 说傻话 \r\n更别说 那个人像小王子那么可爱 \r\n玫瑰很温柔 其实她只是不知所措罢了 \r\n至于小王子 他还太小了 不明白玫瑰的温柔 \r\n他的离开也许并不是坏事\r\n\r\n最喜欢早上,好像什么都可以重新开始,中午的时候就开始觉得忧伤,晚上最难度过。\r\n\r\nI know that one day I will forgot you. \r\nI don\'t have anticipation. \r\nI don\'t feel sad. \r\nI just know, that\'s all.\r\n\r\n长大了 总有那么一两次机会 你会为了喜欢的人 跑那么一跑 因为 如果是对的人的话 走路真的来不及\r\n\r\n很久以后,那些好极了和糟透了的时刻我们都会忘记,唯一真实和难忘的是,我们抬头挺胸走过的人生。\r\n\r\n不论是我的世界车水马龙繁华盛世 还是它们都瞬间消失化为须臾 我都会坚定地走向你 不慌张 不犹豫', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584886233933&di=984c5adffbeee9133453b53cdfaa912f&imgtype=0&src=http%3A%2F%2Fd.hiphotos.baidu.com%2Fzhidao%2Fpic%2Fitem%2F4ec2d5628535e5dd24d1534b74c6a7efcf1b62a1.jpg', '原创', 0, 1, 1, 1, 1, 1, '2020-03-22 19:36:45', '2020-03-22 19:36:45', 3, 1, '不论是我的世界车水马龙繁华盛世\r\n 还是它们都瞬间消失化为须臾 \r\n我都会坚定地走向你 不慌张 不犹豫', '8'),
(12, 'maven中静态资源的过滤', '# maven中静态资源的过滤\r\n\r\npom.xml文件中加入下面配置\r\n\r\n### 可以过滤java和resources文件夹里面所有的的.properties和.xml文件\r\n**directory:指定资源所在的目录,目录的路径是相对于pom.xml文件的\r\nincludes:指定要包含哪些文件**\r\n**filtering标签中:false表示不过滤,true表示过滤**\r\n\r\n```java\r\n <build>\r\n <resources>\r\n <resource>\r\n <directory>src/main/java</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n <resource>\r\n <directory>src/main/resources</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n </resources>\r\n </build>\r\n```\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584367888190&di=7855ff350e759b4b3de8c614978673b4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F07%2F20161207154722_Cmce5.thumb.400_0.gif', '原创', 1, 1, 1, 1, 1, 1, '2020-03-12 08:25:47', '2020-03-13 11:56:19', 3, 1, 'pom.xml文件中加入下面配置\r\n可以过滤java和resources文件夹里面所有的的.properties和.xml文件', '4'),
(13, 'maven中静态资源的过滤', '# maven中静态资源的过滤\r\n\r\npom.xml文件中加入下面配置\r\n\r\n### 可以过滤java和resources文件夹里面所有的的.properties和.xml文件\r\n**directory:指定资源所在的目录,目录的路径是相对于pom.xml文件的\r\nincludes:指定要包含哪些文件**\r\n**filtering标签中:false表示不过滤,true表示过滤**\r\n\r\n```java\r\n <build>\r\n <resources>\r\n <resource>\r\n <directory>src/main/java</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n <resource>\r\n <directory>src/main/resources</directory>\r\n <includes>\r\n <include>**/*.properties</include>\r\n <include>**/*.xml</include>\r\n </includes>\r\n <filtering>false</filtering>\r\n </resource>\r\n </resources>\r\n </build>\r\n```\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584367888190&di=7855ff350e759b4b3de8c614978673b4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F07%2F20161207154722_Cmce5.thumb.400_0.gif', '原创', 1, 1, 1, 1, 1, 1, '2020-03-12 08:25:47', '2020-03-13 11:56:19', 3, 1, 'pom.xml文件中加入下面配置\r\n可以过滤java和resources文件夹里面所有的的.properties和.xml文件', '4'),
(14, '测试', '# 啊飞洒飞洒啊飞洒飞洒\r\n案说法撒发生', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584368536828&di=460fea188bd56a9f691d87e56622b891&imgtype=0&src=http%3A%2F%2Ftc.sinaimg.cn%2Fmaxwidth.800%2Ftc.service.weibo.com%2Fp3_pstatp_com%2F5ffc4f5b05b15c5642dd59cc7341cc71.jpg', '', 0, 0, 0, 0, 1, 1, '2021-03-19 17:04:09', '2021-03-19 17:04:09', 1, 1, '萨法沙发沙发', '4,5'),
(15, '2020期末考试', '---\r\ntitle: Java实现TCP/UDP编程\r\nkeywords: \'Java,Socket,计算机网络\'\r\ntags:\r\n - java基础\r\n - 计算机网络\r\ncategories:\r\n - java基础\r\n - 计算机网络\r\nabbrlink: 8411\r\n\r\n---\r\n\r\n## TCP\r\n\r\nTCP在计网中的位置十分重要,很多协议的运行都是以TCP为基础来运行的,虽然TCP的开销比UDP开销大,但其实现的可靠性交付是一大特点,其还具有流量控制、拥塞控制等特性,在面试中也少不了谈其三次握手、四次挥手以及其他问题。\r\n\r\n```\r\npublic class LengthCalculator extends Thread{\r\n private Socket socket;\r\n\r\n public LengthCalculator(Socket socket){\r\n this.socket=socket;\r\n }\r\n\r\n @Override\r\n public void run(){\r\n try{\r\n OutputStream os =socket.getOutputStream();\r\n InputStream is =socket.getInputStream();\r\n int ch=0;\r\n byte[] buff =new byte[1024];\r\n ch=is.read(buff);\r\n String content =new String(buff,0,ch);\r\n System.out.println(content);\r\n os.write(String.valueOf(content.length()).getBytes());\r\n is.close();\r\n os.close();\r\n socket.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n}\r\n\r\npublic class TCPClient {\r\n public static void main(String[] args) throws IOException {\r\n Socket socket=new Socket("127.0.0.1",65000);\r\n OutputStream out = socket.getOutputStream();\r\n InputStream in = socket.getInputStream();\r\n out.write("Hello World!".getBytes());\r\n int ch=0;\r\n byte[] bytes=new byte[1024];\r\n ch=in.read(bytes);\r\n String content=new String(bytes,0,ch);\r\n System.out.println("接收到内容content:"+content);\r\n in.close();\r\n out.close();\r\n socket.close();\r\n }\r\n}\r\n\r\npublic class TCPServer {\r\n public static void main(String[] args) throws IOException {\r\n ServerSocket ss =new ServerSocket(65000);\r\n while(true){\r\n Socket socket=ss.accept();\r\n new LengthCalculator(socket).start();\r\n }\r\n }\r\n}\r\n```\r\n\r\n\r\n\r\n## UDP\r\n\r\nUDP是数据报传输协议,其可传输的大小取决于数据报的大小,不像TCP协议一样受到MTU最大传输的限制,也不用像TCP一样实现报文切片等特性进行传输,但UDP的主要传输速率取决于双方的带宽,且不提供可靠性交付。\r\n\r\n```\r\npublic class UDPClient {\r\n public static void main(String[] args) throws IOException {\r\n DatagramSocket socket =new DatagramSocket();\r\n byte[] buf ="hello world".getBytes();\r\n //将IP封装为InetAddress对象\r\n InetAddress address =InetAddress.getByName("127.0.0.1");\r\n //将要发送数据封装成DatagramPacket对象,填写上ip地址与端口号\r\n DatagramPacket packet =new DatagramPacket(buf,buf.length,address,65001);\r\n socket.send(packet);\r\n\r\n byte[] data =new byte[100];\r\n //创建DatagramPacket对象来存储服务端发送的数据\r\n DatagramPacket receivedPacket = new DatagramPacket(data,data.length);\r\n socket.receive(receivedPacket);\r\n //将数据取出来并打印\r\n String content = new String(receivedPacket.getData(),0,receivedPacket.getLength());\r\n System.out.println(content);\r\n }\r\n}\r\n\r\npublic class UDPServer {\r\n public static void main(String[] args) throws IOException {\r\n //服务端接收客户端发送的数据报\r\n DatagramSocket socket =new DatagramSocket(65001);\r\n //存储从客户端收到的内容\r\n byte[] buff =new byte[100];\r\n //接收客户端发送的内容,并将内容封装进DatagramPacket对象中\r\n DatagramPacket packet =new DatagramPacket(buff,buff.length);\r\n socket.receive(packet);\r\n //从DatagramPacket中获取真正存储的数据\r\n byte[] data =packet.getData();\r\n //将数据从二进制转化为字符串形式\r\n String content =new String(data,0,packet.getLength());\r\n System.out.println(content);\r\n //将要发送给客户端的数据换成二进制\r\n byte[] sendedContent =String.valueOf(content.length()).getBytes();\r\n //服务端给客户端发送数据报\r\n //从DatagramPacket对象中获取到数据的来源地址与端口号\r\n DatagramPacket packetToClient =new DatagramPacket(sendedContent,sendedContent.length,packet.getAddress(),packet.getPort());\r\n socket.send(packetToClient);\r\n }\r\n}\r\n\r\n```\r\n\r\n', 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1584368536828&di=460fea188bd56a9f691d87e56622b891&imgtype=0&src=http%3A%2F%2Ftc.sinaimg.cn%2Fmaxwidth.800%2Ftc.service.weibo.com%2Fp3_pstatp_com%2F5ffc4f5b05b15c5642dd59cc7341cc71.jpg', '', 0, 0, 0, 0, 1, 1, '2021-03-19 18:01:38', '2021-03-19 18:01:38', 3, 1, 'fsafasf', '4,5');
/*!40000 ALTER TABLE `t_blog` ENABLE KEYS */;
-- 导出 表 blog.t_blog_tags 结构
CREATE TABLE IF NOT EXISTS `t_blog_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag_id` bigint(20) DEFAULT NULL,
`blog_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 blog.t_blog_tags 的数据:~19 rows (大约)
/*!40000 ALTER TABLE `t_blog_tags` DISABLE KEYS */;
REPLACE INTO `t_blog_tags` (`id`, `tag_id`, `blog_id`) VALUES
(1, 3, '4'),
(2, 4, '1'),
(3, 4, '3'),
(4, 5, '3'),
(5, 5, '4'),
(6, 7, '2'),
(7, 6, '5'),
(64, 5, '3'),
(65, 4, '3'),
(66, 4, '6'),
(74, 7, '10'),
(75, 8, '11'),
(76, 8, '12'),
(77, 8, '13'),
(78, 4, '14'),
(79, 5, '14'),
(80, 4, '15'),
(81, 5, '15'),
(82, 4, '6'),
(83, 5, '3'),
(84, 4, '3');
/*!40000 ALTER TABLE `t_blog_tags` ENABLE KEYS */;
-- 导出 表 blog.t_friend 结构
CREATE TABLE IF NOT EXISTS `t_friend` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`blogaddress` varchar(255) NOT NULL,
`blogname` varchar(255) NOT NULL,
`create_time` datetime DEFAULT NULL,
`pictureaddress` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- 正在导出表 blog.t_friend 的数据:~1 rows (大约)
/*!40000 ALTER TABLE `t_friend` DISABLE KEYS */;
REPLACE INTO `t_friend` (`id`, `blogaddress`, `blogname`, `create_time`, `pictureaddress`) VALUES
(58, '撒发生', '萨法', '2021-03-22 11:59:48', '案发时');
/*!40000 ALTER TABLE `t_friend` ENABLE KEYS */;
-- 导出 表 blog.t_message 结构
CREATE TABLE IF NOT EXISTS `t_message` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`nickname` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`avatar` varchar(255) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`parent_message_id` bigint(20) DEFAULT NULL,
`admin_message` bit(1) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- 正在导出表 blog.t_message 的数据:~1 rows (大约)
/*!40000 ALTER TABLE `t_message` DISABLE KEYS */;
REPLACE INTO `t_message` (`id`, `nickname`, `email`, `content`, `avatar`, `create_time`, `parent_message_id`, `admin_message`) VALUES
(100, 'qejisjyp', '[email protected]', 'gdfhdfh', '/static/images/logo.png', '2021-03-22 00:27:14', -1, b'0');
/*!40000 ALTER TABLE `t_message` ENABLE KEYS */;
-- 导出 表 blog.t_tag 结构
CREATE TABLE IF NOT EXISTS `t_tag` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 blog.t_tag 的数据:~6 rows (大约)
/*!40000 ALTER TABLE `t_tag` DISABLE KEYS */;
REPLACE INTO `t_tag` (`id`, `name`) VALUES
(4, '后端1'),
(5, 'springboot'),
(6, 'java'),
(8, '杂谈'),
(10, '阿达'),
(11, '天才'),
(12, '我就是');
/*!40000 ALTER TABLE `t_tag` ENABLE KEYS */;
-- 导出 表 blog.t_type 结构
CREATE TABLE IF NOT EXISTS `t_type` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 blog.t_type 的数据:~5 rows (大约)
/*!40000 ALTER TABLE `t_type` DISABLE KEYS */;
REPLACE INTO `t_type` (`id`, `name`) VALUES
(1, '学习方法'),
(3, '娱乐方法'),
(4, '钓鱼方法'),
(5, '哈哈方法');
/*!40000 ALTER TABLE `t_type` ENABLE KEYS */;
-- 导出 表 blog.t_user 结构
CREATE TABLE IF NOT EXISTS `t_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`nickname` varchar(255) DEFAULT NULL,
`username` varchar(255) NOT NULL DEFAULT '',
`password` varchar(255) NOT NULL DEFAULT '',
`email` varchar(255) DEFAULT NULL,
`avatar` varchar(255) DEFAULT NULL,
`type` int(10) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- 正在导出表 blog.t_user 的数据:~0 rows (大约)
/*!40000 ALTER TABLE `t_user` DISABLE KEYS */;
REPLACE INTO `t_user` (`id`, `nickname`, `username`, `password`, `email`, `avatar`, `type`, `create_time`, `update_time`) VALUES
(1, '朱一鸣', 'admin', 'e10adc3949ba59abbe56e057f20f883e', '[email protected]', '/images/logo.png', 1, '2020-03-08 18:25:26', NULL);
/*!40000 ALTER TABLE `t_user` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;