云主机使用-创建、软件下载、使用(安装java、部署项目到云主机、安装MariaDB、测试数据库) (2)

  输入命令:java -jar demo-0.0.1-SNAPSHOT.jar &(可输入demo后,按Tab进行文件名补全,&表示还可以继续操作,否则就一直部署中,记得最后加&),加载完成后出现Success,表示项目在云主机上运行成功。浏览器访问路径:8080(其中,10.10.10.10为云主机外网IP),可查看项目运行结果:

云主机使用-创建、软件下载、使用(安装java、部署项目到云主机、安装MariaDB、测试数据库)

(4)安装mariaDB

  安装命令:yum install mariadb mariadb-server(后面接了mariadb和mariadb-server,即同时安装这两个软件)

  启动mariadb命令:systemctl start mariadb

  连接mariadb命令:mysql -uroot

  要导入的konws_v4.sql文件内容如下:

 -- --------------------------------------------------------
 -- 主机:                           127.0.0.1
 -- 服务器版本:                       5.5.47-MariaDB - mariadb.org binary distribution
 -- 服务器操作系统:                     Win64
 -- HeidiSQL 版本:                 9.1.0.4867
 -- --------------------------------------------------------
 ​
 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
 /*!40101 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\' */;
 ​
 -- 导出 knows 的数据库结构
 CREATE DATABASE IF NOT EXISTS `knows` /*!40100 DEFAULT CHARACTER SET utf8 */;
 USE `knows`;
 ​
 ​
 -- 导出 表 knows.answer 结构
 CREATE TABLE IF NOT EXISTS `answer` (
   `id` int(20) NOT NULL AUTO_INCREMENT,
   `content` longtext NOT NULL COMMENT \'回答内容\',
   `like_count` int(255) NOT NULL COMMENT \'点赞数量\',
   `user_id` int(11) NOT NULL COMMENT \'回答问题的用户id\',
   `user_nick_name` varchar(255) NOT NULL COMMENT \'回答者用户名\',
   `quest_id` int(11) NOT NULL COMMENT \'对应的问题id\',
   `createtime` datetime NOT NULL COMMENT \'回答时间\',
   `accept_status` tinyint(4) NOT NULL COMMENT \'是否采纳\',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.answer 的数据:~49 rows (大约)
 /*!40000 ALTER TABLE `answer` DISABLE KEYS */;
 INSERT INTO `answer` (`id`, `content`, `like_count`, `user_id`, `user_nick_name`, `quest_id`, `createtime`, `accept_status`) VALUES
  (36, \'测试数据1111\', 0, 9, \'刘苍松\', 114, \'2021-04-27 09:43:24\', 1),
  (40, \'<p><span >spring cloud 是一系列框架的有序集合。它利用 spring boot 的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册、配置中心、消息总线、负载均衡、断路器、数据监控等,都可以用 spring boot 的开发风格做到一键启动和部署。</span><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></p>\', 0, 9, \'刘苍松\', 115, \'2021-04-28 17:43:11\', 1),
  (42, \'<h2 ><span ><span >九个内置对象</span></span></h2><div ><span ><span ></span></span><p ><span >好了,相信现在大家已经对四个作用域有了一定的了解,下面我们来说一下九大内置对象。</span></p></div>\', 0, 9, \'刘苍松\', 118, \'2021-04-30 11:51:09\', 0),
  (44, \'<blockquote ><p >JSON(JavaScript Object Notation,JS对象简谱) 是一种轻量级的数据交换格式。它基于ECMAScript(欧洲计算机协会制定的js规范)的一个子集,采用完全独立于编程语言的文本格式来存储和表示数据。简洁和清晰的层次结构使得JSON成为理想的数据交换语言。易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效率。</p></blockquote><p >关于JSON格式的数据示例:</p><pre spellcheck="false" lang="" ><div lang="" ><div ><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" ></textarea></div><div tabindex="-1" ><div ><div ><div role="presentation" ><div role="presentation" ><div ><pre ></pre></div><div ></div><div ></div><div role="presentation"><div ><div ></div><div ></div><pre role="presentation" ><span role="presentation" >{</span></pre></div><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"username":"root",</span></pre></div><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"password":"1234",</span></pre></div><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"age":24,</span></pre></div><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"phone":"13800138001",</span></pre></div><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"email":"root@tedu.cn",</span></pre><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"from":"Beijing",</span></pre><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"skills":["Java", "HTML", "CSS", "JavaScript", "MySQL"],</span></pre></div><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>"department": {</span></pre></div><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span><span role="presentation" cm-text=" "> </span>"id":6,</span></pre><div ><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span><span role="presentation" cm-text=" "> </span>"name":"RD"</span></pre></div><pre role="presentation" ><span role="presentation" ><span role="presentation" cm-text=" "> </span>}</span></pre><div ><pre role="presentation" ><span role="presentation" >}</span></pre></div></div></div></div></div></div><div ></div></div></div></pre><p >关于JSON语法:</p><ul ><li ><span >每个</span><strong>JSON对象</strong>必须使用一对大括号<code >{}</code>框住;</li></ul><ul ><li ><span >整个JSON数据是一个</span><strong>JSON对象</strong>;</li><li ><span >每个</span><strong>JSON对象</strong>中可以配置若干个<strong>属性</strong>与<strong>值</strong>的对应关系,每一组属性与值的配置之间使用逗号<code >,</code>分隔;</li><li ><span >每组</span><strong>属性</strong>与<strong>值</strong>的对应关系,<strong>属性</strong>与<strong>值</strong>使用冒号<code >:</code>分隔;</li><li ><strong >属性名称</strong>都是字符串,需要使用一对双引号<code >""</code>框住;</li><li ><strong >属性值</strong>可以是任意简单的类型,如果是字符串类型,也需要使用一对双引号<code >""</code>框住,如果是数值或布尔值,则不需要使用符号;</li><li ><strong >属性值</strong>也可以是其它复杂的类型,例如数组类型,则应该使用中括号<code >[]</code>框住多个值,且在中括号内部,各个值之间使用逗号<code >,</code>分隔;</li><li ><strong >属性值</strong>还可以是另一个对象;</li></ul>\', 0, 9, \'刘苍松\', 121, \'2021-04-30 15:51:02\', 0),
  (45, \'<p><span >== 用于比较两个变量的值是否相等,</span></p><ul><li>基本类型时候就是比较其值是否相等</li><li>引用类型的值是对象的地址,==比较时候就在比较这个地址值是否是相同地址,当两个引用值相等时候表示两个引用同时引用了同一个对象。相反不等时候就是引用了不同的对象。</li><li>当两个对象索引属性数值相等时候,使用==比较其引用将得到false结果,所以==不能用于比较对象是否相等。</li></ul><p>equals方法是在Object上定义的方法,被全部子类型继承,其功能用于比较两个对象是否相等。</p><p><br></p>\', 0, 9, \'刘苍松\', 104, \'2021-05-05 23:59:00\', 0),
  (46, \'<ul ><li ><span >Lambda表达式</span></li><li ><span >函数式接口</span></li><li ><span >*方法引用和构造器调用</span></li><li ><span >Stream API</span></li><li ><span >接口中的默认方法和静态方法</span></li><li ><span >新时间日期API</span></li></ul>\', 0, 39, \'陈瑞丰\', 123, \'2021-05-07 14:13:22\', 1),
  (47, \'<ul style=\\'margin: 0px; padding: 0px 0px 0px 2.2em; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 0.544px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;\\'><li ><p >JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。</p></li><li ><p >JRE:Java Runtime Environment 的简称,java 运行环境,为 java 的运行提供了所需环境。</p></li></ul><p style=\\'margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 0.544px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;\\'><br ></p><p style=\\'margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 0.544px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;\\'>具体来说 JDK 其实包含了 JRE,同时还包含了编译 java 源码的编译器 javac,还包含了很多 java 程序调试和分析的工具。简单来说:如果你需要运行 java 程序,只需安装 JRE 就可以了,如果你需要编写 java 程序,需要安装 JDK。</p><p><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></p>\', 0, 4, \'王克晶\', 124, \'2021-05-11 12:24:07\', 0),
  (48, \'<p>您好同学,设置 eclipse 工具中书写 java代码提示按照如下步骤设置即可:</p><p>1.打开 eclipse</p><p>2.选择 window-&gt;Preferences-&gt;Java-&gt;Editor-&gt;Content Assist</p><p>3.找到Auto activation triggers for Java:</p><p>4.设置内容为.abcdefghijklmnopqrstuvwxyz<span >(注意是有.的)</span></p><p>5.点击应用</p><p><img src="http://resource.straw.org.cn/upload_file/2020/05/11/57b14dd8-1437-409f-91e2-791415a9ea37.png" data-filename="img" ><br></p><p><br></p>\', 0, 34, \'包佳奇\', 125, \'2021-05-11 15:54:43\', 0),
  (59, \'<p>您好同学,这个问题的解决方案如下:<br>1.打开 eclipse</p><p>2.window-&gt;preferences-&gt;general-&gt;editors-&gt;text editors</p><p>3.找到 show whitespace characters 把选项前面的勾取消掉</p><p>4.点击确认应用</p><p>图示:</p><p><img src="http://resource.straw.org.cn/upload_file/2020/05/12/1e428312-f2de-4fa1-b42d-6a59e33aba12.png" data-filename="img" ><br></p><span ></span>\', 0, 34, \'包佳奇\', 126, \'2021-05-12 00:27:05\', 1),
  (60, \'<p ><span lang="EN-US" >java</span><span >类中是可以有多个类。<span lang="EN-US"><o:p></o:p></span></span></p><p>\r\n\r\n</p><p ><span >但是,在多个类中,有且只有一个<span lang="EN-US">public</span>类,且<span lang="EN-US">public</span>类的类名必须与<span lang="EN-US">*.java</span>的文件名相一致<span lang="EN-US"><o:p></o:p></span></span></p>\', 0, 40, \'林森\', 128, \'2021-05-12 10:17:04\', 0),
  (61, \'重写后equals()方法对比的是两个对象的内容是否是一样的,==判断的是两个对象的地址是否一样,但是Object中equals()依旧使用==比地址,,所以如果需要自定义对比的对象(要比内容)需要重写equals();\', 0, 35, \'赵秀佳\', 127, \'2021-05-12 10:19:40\', 1),
  (62, \'<p><b><span >关键字</span></b><span >:其实就是某种语言赋予了特殊含义的单词。<span lang="EN-US"><o:p></o:p></span></span></p><p ><span >除了关键字,java还有一些保留字:其实就是还没有赋予特殊含义,</span></p><p ><span >但是准备日后要使用过的单词。c<span lang="EN-US">onst goto</span></span></p><p ><span ><span lang="EN-US">另外呢java还有一些字面量: t</span></span><span lang="EN-US" >rue false null</span><span >是字面量</span></p>\', 0, 40, \'林森\', 129, \'2021-05-12 10:20:59\', 0),
  (63, \'<p>这个错是说服务器的端口被占用了,查看一下是否已经有启动的服务器了,如果没有的话修改一下端口号</p><p>要启动服务器的时候要确保当前没有已经启动的服务器了,并且这个端口号不能被占用了.</p>\', 0, 35, \'赵秀佳\', 130, \'2021-05-12 10:36:16\', 1),
  (64, \'<div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第一步、在电脑打开eclipse软件,点击导航栏中的 file-&gt; 选择 Import,</span></div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第二步、继续选择General-&gt;Existing Projects into workspace,点击next,</span></div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第三步、点击选择要导入的项目路径(项目存放位置),选好,点击finish,</span></div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第四步、可以看到已经导入成功了。</span></div></div>\', 0, 32, \'李大帅\', 131, \'2021-05-12 14:19:13\', 0),
  (65, \'<p>您好同学,HTTP 响应中的状态行总共分三部分组成,每部分是以空格间隔的.<br>第一部分为:协议版本</p><p>第二部分为:状态代码</p><p>第三部分为:状态描述</p><p>例如:HTTP/1.1 200 OK</p><p><br></p>\', 0, 34, \'包佳奇\', 132, \'2021-05-13 16:49:59\', 0),
  (66, \'<p>方法的重载是overloading,方法名相同,参数的类型或个数不同,对权限没有要求</p><p>方法的重写是overrding 方法名称和参数列表,参数类型,返回值类型全部相同,但是所实现的内容可以不同,一般发生在继承中</p>\', 0, 38, \'高书瑀\', 133, \'2021-05-13 18:52:09\', 0),
  (67, \'<div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="" >第一步、</span><span data-a-72ad71e4="">打开eclipse,点击菜单栏中的</span>【Windows】</div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第二步、选择【Windows】下拉菜单中的【Preferences】打开。</span></div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第三步、在【Preferences】页面,依次点击打开【General】--【Workspace 】。</span></div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第四步、在右侧的【Workspace】栏中,找到【 Text file encoding】,...修改对应的字符集即可。一般为utf-8</span></div></div><div data-a-72ad71e4="" ><div target="_blank" data-visited="off" data-a-72ad71e4="" ><span data-a-72ad71e4="">第五步、修改完之后,记得点击【Apply】提交保存刚才的操作。</span></div></div>\', 0, 32, \'李大帅\', 134, \'2021-05-14 17:47:26\', 0),
  (68, \'<p>同学您好,我们想要在 java 中使用正则表达式匹配\\时,按照正则表达式的写法就是写斜杠“\\\\”,因为正则表达式不是 java 特有的,咱们再用字符串表示出来,这两个”\\\\“都分别需要一个转义,这样就成了 4 个”\\\\\\\\“来匹配一个\\(反斜杠)。</p>\', 0, 34, \'包佳奇\', 135, \'2021-05-16 12:42:30\', 1),
  (69, \'<p>客户端和服务器端之间的通讯是基于两条流进行传输,在客户端中通过Scoket中获取输出流,然后服务器端通过ServerSocket接收客户端的请求,如果连接成功,服务端也会产生一个Scoket对象,并成Scoket对象中获取输入流</p>\', 0, 35, \'赵秀佳\', 137, \'2021-05-16 13:38:36\', 1),
  (70, \'<p>对象的数据随对象存储在堆内存中,如果想将对象长久的保存在本地,就需要对对象进行序列化操作,是指将一个对象转换为一组字节写出到硬盘上,对象反序列化指将一组字节重新还原回一个对象</p>\', 0, 35, \'赵秀佳\', 136, \'2021-05-16 13:41:20\', 1),
  (71, \'<div data-a-72ad71e4="" ><p ><span data-a-72ad71e4="">找到</span>eclipse左上角的\\'\\'window\\'\\'</p><p >点击后在下拉菜单中找到"preferences"</p><p >在弹出窗口的左上角搜索"font",然后选择"colors and fonts"</p><p >点击展开"basic",最下面有"text font"选项,点击后就可以在弹出窗口中设置喜欢的字体、字形以及字体大小了</p><p ><br></p></div>\', 0, 37, \'爼超\', 139, \'2021-05-28 17:25:57\', 0),
  (72, \'<p><span >WIN 7配置环境变量步骤:</span></p><p>1. 在"电脑"属性中配置JDK</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/e074da4f-d271-43fe-875f-33c6260e554c.png" data-filename="img" ><br></p><p>2. 选择 "高级系统设置"</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/220014c8-3426-4f0b-a6ba-fa9536f25b70.png" data-filename="img" ><br></p><p>3. 点击 "高级" -&gt; "环境变量"</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/34da9487-bac8-468e-af58-3922cab9d7dd.png" data-filename="img" ><br></p><p>4. 增加 JAVA_HOME 环境变量, 其值指向JDK的安装目录</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/617e0fa2-ef93-4bb7-874e-b7ba7cece960.png" data-filename="img" ><br></p><p>5. 修改Path环境变量, 在值中增加"JDK安装目录\\bin"</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/42d2bcce-84b7-48d0-87bb-c53ca51dd642.png" data-filename="img" ><br></p><p>6. 增加环境变量 CLASSPATH, 其值是英文点 "."</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/3aee9632-177f-4a70-85e3-a4fb57f01407.png" data-filename="img" ><br></p><p>7.一直点击“确定”直到退出界面</p><p>8. 检查是否配置成功:右键点击开始菜单,选择此选项</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/f25294bb-218c-494a-988e-e2708e061600.png" data-filename="img" ><br></p><p>9. 在运行中填写,“cmd”</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/c8c3d3d6-cf9e-4bfb-82bc-be3bc584406f.png" data-filename="img" ><br></p><p>10.在此窗口中输入“javac”回车,出现以下内容代表配置成功了</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/105e02a2-7c6e-42ec-81c1-6a738b9cbc14.png" data-filename="img" ><br></p><p><span >WIN 10配置环境变量步骤:</span><br></p><p>WIN 10系统配置环境变量步骤与WIN7系统大体一致,只是在步骤5<span >修改Path环境变量时新建"</span>%JAVA_HOME%\\bin"</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/1663e468-3a7d-4488-a569-7c1e9d8a74de.png" data-filename="img" ><br></p>\', 0, 37, \'爼超\', 138, \'2021-05-29 17:26:40\', 0),
  (73, \'<p>点击eclipse左上角的file,选择switch workspace中的other就可以更换了</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/d25f3aee-30f2-4b25-9f22-9350825538cb.png" data-filename="img" ><br></p>\', 0, 37, \'爼超\', 140, \'2021-05-30 15:41:51\', 0),
  (74, \'<p><span >main是主要的意思,main方法是程序的入口,没有main方法则无法执行一个程序。</span></p><p><span >String[] args是main函数的形参,可以用来获取用户输入进去的参数。</span><br></p>\', 0, 37, \'爼超\', 144, \'2021-05-30 15:42:35\', 0),
  (75, \'<p><span >超出int范围时,编译会出错,这时就需要加L</span><br></p>\', 0, 37, \'爼超\', 143, \'2021-05-30 15:43:20\', 0),
  (76, \'<p><span >右键<b>src</b>文件夹 -&gt;&nbsp;</span><span >Build Path</span><span >&nbsp;-&gt;&nbsp;</span><span >Use as Source Folder</span><br></p>\', 0, 37, \'爼超\', 141, \'2021-05-30 15:44:20\', 0),
  (77, \'<p>分数可以通过定义两个int类型的数字进行/除法运算表示.</p><p><span >JAVA加减乘除的运算规则是基于咱们的数学运算规则的,</span><span >正常计算就可以,就是在JAVA中乘号是用星号*表示的。</span></p>\', 0, 37, \'爼超\', 142, \'2021-05-30 15:50:20\', 0),
  (78, \'<p>点击左上角的file-&gt;new,选择java project,如果没有的话点击下面的other搜索一下。</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/fa94761b-3656-4e96-b3ff-d08d69418c32.png" data-filename="img" ><br></p>\', 0, 37, \'爼超\', 145, \'2021-05-30 19:58:21\', 0),
  (79, \'<p>右键点击想要导出的项目,选择export</p><p>以我想要导出的TAirplaneShoot项目为例,以橙色框圈出来的文件都必须选中</p><p>然后点击Browse选择导出项目想要存储的路径</p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/51d7bccb-3675-49ae-8dbe-9eef760ba85c.png" data-filename="img" ><br></p><p><span >最后点击finish</span></p>\', 0, 37, \'爼超\', 146, \'2021-05-30 20:14:11\', 0),
  (80, \'<p>需要用到特殊符号的时候,就必须得转义。<br></p>\', 0, 37, \'爼超\', 148, \'2021-05-30 20:22:07\', 0),
  (81, \'代码不会被删除的,依旧保存在之前的工作空间中\', 0, 37, \'爼超\', 147, \'2021-05-30 20:23:10\', 0);
 /*!40000 ALTER TABLE `answer` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.classroom 结构
 CREATE TABLE IF NOT EXISTS `classroom` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `name` varchar(30) NOT NULL COMMENT \'班级名称\',
   `invite_code` varchar(255) NOT NULL COMMENT \'邀请码\',
   `enabled` tinyint(4) NOT NULL COMMENT \'班级是否可用\',
   `createtime` datetime NOT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.classroom 的数据:~4 rows (大约)
 /*!40000 ALTER TABLE `classroom` DISABLE KEYS */;
 INSERT INTO `classroom` (`id`, `name`, `invite_code`, `enabled`, `createtime`) VALUES
  (1, \'JSD1912\', \'JSD1912-876840\', 1, \'2021-03-31 11:29:26\'),
  (2, \'JSD2001\', \'JSD2001-706246\', 1, \'2021-03-31 13:41:29\'),
  (3, \'JSD2002\', \'JSD2002-525416\', 1, \'2021-03-31 13:41:58\'),
  (4, \'JSD2003\', \'JSD2003-005803\', 1, \'2021-03-31 13:42:23\');
 /*!40000 ALTER TABLE `classroom` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.comment 结构
 CREATE TABLE IF NOT EXISTS `comment` (
   `id` int(11) NOT NULL AUTO_INCREMENT COMMENT \'主键\',
   `user_id` int(11) NOT NULL COMMENT \'用户id\',
   `answer_id` int(11) NOT NULL COMMENT \'回答id\',
   `content` text NOT NULL COMMENT \'评论内容\',
   `createtime` datetime NOT NULL COMMENT \'创建时间\',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.comment 的数据:~8 rows (大约)
 /*!40000 ALTER TABLE `comment` DISABLE KEYS */;
 INSERT INTO `comment` (`id`, `user_id`, `answer_id`, `content`, `createtime`) VALUES
  (8, 11, 36, \'测试数据\', \'2021-04-27 18:31:49\'),
  (10, 11, 36, \'测试数据\', \'2021-04-28 16:55:22\'),
  (11, 11, 36, \'测试数据\', \'2021-04-28 16:55:29\'),
  (12, 28, 41, \'明白了,谢谢老师!\', \'2021-04-29 00:31:41\'),
  (13, 11, 42, \'我了解了!\', \'2021-04-30 12:01:13\'),
  (15, 30, 44, \'Java 如何处理 JSON 格式\', \'2021-04-30 15:53:10\'),
  (16, 9, 45, \'由于equas方法默认实现是 “==” 比较两个对象的引用,其规则不是很合理。 Java建议子类型进行合理重写,重写为按照关键属性比较对象是否相等。 由于经常需要重写equals方法,开发工具提供了快捷生成equals方法功能,一般情况下使用开发工具生成即可。\', \'2021-05-06 00:02:31\'),
  (18, 4, 48, \'赞!\', \'2021-05-11 15:57:17\');
 /*!40000 ALTER TABLE `comment` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.notice 结构
 CREATE TABLE IF NOT EXISTS `notice` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `type` tinyint(4) NOT NULL COMMENT \'消息类型,0-》评论问题的回答,1-》回答某人的提问,2-》评论某人的提问\',
   `question_id` int(11) NOT NULL COMMENT \'问题id\',
   `createtime` datetime DEFAULT NULL COMMENT \'创建时间\',
   `user_id` int(11) NOT NULL COMMENT \'收到消息的用户id\',
   `reply_user_id` int(11) DEFAULT NULL COMMENT \'回复者id\',
   `read_status` tinyint(4) DEFAULT NULL COMMENT \'消息是否已查看,0-》否,1-》是\',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=146 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.notice 的数据:~126 rows (大约)
 /*!40000 ALTER TABLE `notice` DISABLE KEYS */;
 INSERT INTO `notice` (`id`, `type`, `question_id`, `createtime`, `user_id`, `reply_user_id`, `read_status`) VALUES
  (20, 0, 114, \'2021-04-28 16:55:22\', 9, 11, 1),
  (21, 0, 114, \'2021-04-28 16:55:29\', 9, 11, 1),
  (22, 1, 112, \'2021-04-28 17:16:58\', 11, 9, 1),
  (23, 1, 115, \'2021-04-28 17:43:11\', 28, 9, 1),
  (24, 3, 117, \'2021-04-29 00:28:56\', 9, 28, 1),
  (25, 3, 117, \'2021-04-29 00:28:56\', 7, 28, 0),
  (26, 3, 117, \'2021-04-29 00:28:56\', 8, 28, 0),
  (27, 3, 117, \'2021-04-29 00:28:56\', 5, 28, 0),
  (28, 3, 117, \'2021-04-29 00:28:56\', 6, 28, 0),
  (29, 1, 117, \'2021-04-29 00:30:37\', 28, 9, 0),
  (30, 0, 117, \'2021-04-29 00:31:41\', 9, 28, 1),
  (31, 3, 118, \'2021-04-29 09:31:50\', 9, 11, 1),
  (32, 3, 118, \'2021-04-29 09:31:50\', 6, 11, 0),
  (33, 3, 118, \'2021-04-29 09:31:50\', 8, 11, 0),
  (34, 3, 118, \'2021-04-29 09:31:50\', 2, 11, 0),
  (35, 1, 118, \'2021-04-30 11:51:09\', 11, 9, 0),
  (36, 0, 118, \'2021-04-30 12:01:13\', 9, 11, 1),
  (37, 3, 119, \'2021-04-30 12:19:22\', 4, 30, 1),
  (38, 3, 120, \'2021-04-30 12:21:33\', 9, 30, 1),
  (39, 3, 120, \'2021-04-30 12:21:33\', 4, 30, 0),
  (40, 1, 120, \'2021-04-30 12:22:22\', 30, 9, 1),
  (41, 0, 120, \'2021-04-30 12:23:33\', 9, 30, 1),
  (42, 3, 121, \'2021-04-30 15:49:47\', 9, 30, 1),
  (43, 1, 121, \'2021-04-30 15:51:02\', 30, 9, 0),
  (44, 0, 121, \'2021-04-30 15:53:10\', 9, 30, 1),
  (45, 3, 116, \'2021-05-03 23:26:28\', 9, 9, 1),
  (46, 3, 116, \'2021-05-03 23:26:28\', 6, 9, 0),
  (47, 3, 116, \'2021-05-03 23:26:28\', 9, 9, 0),
  (48, 3, 116, \'2021-05-03 23:26:28\', 6, 9, 0),
  (49, 3, 116, \'2021-05-03 23:26:28\', 9, 9, 1),
  (50, 3, 116, \'2021-05-03 23:26:28\', 6, 9, 0),
  (51, 1, 104, \'2021-05-05 23:58:59\', 11, 9, 1),
  (52, 2, 104, \'2021-05-06 00:02:31\', 11, 9, 1),
  (53, 3, 122, \'2021-05-06 17:37:36\', 9, 11, 1),
  (54, 3, 123, \'2021-05-07 14:12:16\', 39, 42, 1),
  (55, 3, 123, \'2021-05-07 14:12:17\', 31, 42, 0),
  (56, 3, 123, \'2021-05-07 14:12:17\', 35, 42, 1),
  (57, 3, 123, \'2021-05-07 14:12:17\', 33, 42, 0),
  (58, 1, 123, \'2021-05-07 14:13:22\', 42, 39, 1),
  (59, 0, 120, \'2021-05-10 00:54:51\', 9, 4, 1),
  (60, 2, 120, \'2021-05-10 00:54:51\', 30, 4, 0),
  (61, 3, 124, \'2021-05-11 12:22:49\', 4, 11, 1),
  (62, 3, 124, \'2021-05-11 12:22:49\', 9, 11, 1),
  (63, 1, 124, \'2021-05-11 12:24:07\', 11, 4, 1),
  (64, 3, 125, \'2021-05-11 15:47:36\', 34, 43, 1),
  (65, 1, 125, \'2021-05-11 15:54:42\', 43, 34, 1),
  (66, 0, 125, \'2021-05-11 15:57:16\', 34, 4, 1),
  (67, 2, 125, \'2021-05-11 15:57:16\', 43, 4, 1),
  (68, 1, 7, \'2021-05-11 23:14:54\', 13, 4, 0),
  (69, 1, 6, \'2021-05-11 23:15:24\', 13, 4, 0),
  (70, 1, 2, \'2021-05-11 23:15:48\', 13, 4, 0),
  (71, 1, 1, \'2021-05-11 23:16:04\', 13, 4, 0),
  (72, 1, 10, \'2021-05-11 23:16:26\', 13, 4, 0),
  (73, 1, 11, \'2021-05-11 23:34:26\', 13, 4, 0),
  (74, 1, 18, \'2021-05-11 23:41:39\', 11, 4, 0),
  (75, 1, 15, \'2021-05-11 23:42:10\', 3, 4, 0),
  (76, 1, 14, \'2021-05-11 23:43:47\', 13, 4, 0),
  (77, 1, 12, \'2021-05-11 23:45:02\', 13, 4, 0),
  (78, 3, 126, \'2021-05-12 00:14:25\', 34, 43, 1),
  (79, 1, 126, \'2021-05-12 00:27:05\', 43, 34, 1),
  (80, 3, 127, \'2021-05-12 10:15:20\', 35, 44, 1),
  (81, 3, 128, \'2021-05-12 10:16:12\', 40, 45, 1),
  (82, 1, 128, \'2021-05-12 10:17:04\', 45, 40, 1),
  (83, 1, 127, \'2021-05-12 10:19:40\', 44, 35, 1),
  (84, 3, 129, \'2021-05-12 10:19:40\', 40, 45, 1),
  (85, 1, 129, \'2021-05-12 10:20:58\', 45, 40, 1),
  (86, 3, 130, \'2021-05-12 10:33:31\', 35, 44, 1),
  (87, 1, 130, \'2021-05-12 10:36:15\', 44, 35, 1),
  (88, 3, 131, \'2021-05-12 14:17:43\', 32, 32, 1),
  (89, 1, 131, \'2021-05-12 14:19:13\', 32, 32, 1),
  (90, 3, 132, \'2021-05-13 16:43:02\', 34, 43, 1),
  (91, 1, 132, \'2021-05-13 16:49:59\', 43, 34, 1),
  (92, 3, 133, \'2021-05-13 18:48:10\', 38, 46, 0),
  (93, 1, 133, \'2021-05-13 18:52:09\', 46, 38, 0),
  (94, 3, 134, \'2021-05-14 17:45:52\', 32, 32, 1),
  (95, 1, 134, \'2021-05-14 17:47:25\', 32, 32, 0),
  (96, 3, 135, \'2021-05-16 12:37:53\', 34, 43, 1),
  (97, 1, 135, \'2021-05-16 12:42:29\', 43, 34, 1),
  (98, 3, 136, \'2021-05-16 13:30:58\', 35, 44, 1),
  (99, 3, 137, \'2021-05-16 13:34:09\', 35, 44, 1),
  (100, 1, 137, \'2021-05-16 13:38:36\', 44, 35, 1),
  (101, 1, 136, \'2021-05-16 13:41:19\', 44, 35, 1),
  (102, 3, 138, \'2021-05-25 13:42:39\', 37, 48, 1),
  (103, 3, 138, \'2021-05-25 13:42:39\', 39, 48, 0),
  (104, 3, 138, \'2021-05-25 13:42:39\', 9, 48, 0),
  (105, 3, 139, \'2021-05-28 17:18:59\', 39, 48, 0),
  (106, 1, 139, \'2021-05-28 17:25:56\', 48, 37, 1),
  (107, 1, 138, \'2021-05-29 17:26:39\', 48, 37, 1),
  (108, 3, 140, \'2021-05-29 20:09:58\', 41, 48, 0),
  (109, 3, 140, \'2021-05-29 20:09:58\', 35, 48, 1),
  (110, 3, 140, \'2021-05-29 20:09:58\', 33, 48, 0),
  (111, 3, 141, \'2021-05-30 15:30:46\', 35, 48, 1),
  (112, 3, 141, \'2021-05-30 15:30:46\', 36, 48, 0),
  (113, 3, 141, \'2021-05-30 15:30:46\', 38, 48, 0),
  (114, 3, 142, \'2021-05-30 15:32:52\', 31, 48, 0),
  (115, 3, 142, \'2021-05-30 15:32:52\', 5, 48, 0),
  (116, 3, 142, \'2021-05-30 15:32:52\', 41, 48, 0),
  (117, 3, 143, \'2021-05-30 15:33:49\', 38, 48, 0),
  (118, 3, 143, \'2021-05-30 15:33:49\', 37, 48, 1),
  (119, 3, 143, \'2021-05-30 15:33:49\', 33, 48, 0),
  (120, 3, 144, \'2021-05-30 15:35:01\', 36, 48, 0),
  (121, 3, 144, \'2021-05-30 15:35:01\', 37, 48, 1),
  (122, 3, 144, \'2021-05-30 15:35:01\', 34, 48, 0),
  (123, 1, 140, \'2021-05-30 15:41:50\', 48, 37, 1),
  (124, 1, 144, \'2021-05-30 15:42:35\', 48, 37, 1),
  (125, 1, 143, \'2021-05-30 15:43:20\', 48, 37, 1),
  (126, 1, 141, \'2021-05-30 15:44:20\', 48, 37, 1),
  (127, 1, 142, \'2021-05-30 15:50:19\', 48, 37, 1),
  (128, 3, 145, \'2021-05-30 19:56:18\', 41, 48, 0),
  (129, 3, 145, \'2021-05-30 19:56:18\', 39, 48, 0),
  (130, 3, 145, \'2021-05-30 19:56:18\', 40, 48, 0),
  (131, 1, 145, \'2021-05-30 19:58:21\', 48, 37, 1),
  (132, 3, 146, \'2021-05-30 20:05:10\', 34, 48, 1),
  (133, 3, 146, \'2021-05-30 20:05:10\', 32, 48, 0),
  (134, 3, 146, \'2021-05-30 20:05:10\', 9, 48, 0),
  (135, 1, 146, \'2021-05-30 20:14:10\', 48, 37, 0),
  (136, 3, 147, \'2021-05-30 20:19:11\', 38, 48, 0),
  (137, 3, 147, \'2021-05-30 20:19:11\', 41, 48, 0),
  (138, 3, 147, \'2021-05-30 20:19:11\', 31, 48, 0),
  (139, 3, 148, \'2021-05-30 20:21:28\', 2, 48, 0),
  (140, 3, 148, \'2021-05-30 20:21:28\', 9, 48, 0),
  (141, 3, 148, \'2021-05-30 20:21:28\', 8, 48, 0),
  (142, 1, 148, \'2021-05-30 20:22:07\', 48, 37, 0),
  (143, 1, 147, \'2021-05-30 20:23:10\', 48, 37, 0),
  (144, 0, 146, \'2021-06-01 15:50:55\', 37, 4, 0),
  (145, 2, 146, \'2021-06-01 15:50:55\', 48, 4, 0);
 /*!40000 ALTER TABLE `notice` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.permission 结构
 CREATE TABLE IF NOT EXISTS `permission` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `name` varchar(255) NOT NULL,
   `desc` varchar(255) DEFAULT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.permission 的数据:~5 rows (大约)
 /*!40000 ALTER TABLE `permission` DISABLE KEYS */;
 INSERT INTO `permission` (`id`, `name`, `desc`) VALUES
  (1, \'/index.html\', \'访问主页\'),
  (2, \'/question/create\', \'提问\'),
  (3, \'/question/uploadMultipleFile\', \'上传图片文件\'),
  (4, \'/question/detail\', \'查看问题\'),
  (5, \'/question/answer\', \'回答问题\');
 /*!40000 ALTER TABLE `permission` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.question 结构
 CREATE TABLE IF NOT EXISTS `question` (
   `id` int(20) NOT NULL AUTO_INCREMENT,
   `title` varchar(255) NOT NULL COMMENT \'问题的标题\',
   `content` longtext NOT NULL COMMENT \'提问内容\',
   `user_nick_name` varchar(255) NOT NULL COMMENT \'提问者用户名\',
   `user_id` int(11) NOT NULL COMMENT \'提问者id\',
   `createtime` datetime NOT NULL COMMENT \'创建时间\',
   `status` int(1) NOT NULL COMMENT \'状态,0-》未回答,1-》待解决,2-》已解决\',
   `page_views` int(11) NOT NULL COMMENT \'浏览量\',
   `public_status` int(1) NOT NULL COMMENT \'该问题是否公开,所有学生都可见,0-》否,1-》是\',
   `modifytime` date DEFAULT NULL,
   `delete_status` tinyint(4) DEFAULT \'0\',
   `tag_names` varchar(200) DEFAULT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.question 的数据:~32 rows (大约)
 /*!40000 ALTER TABLE `question` DISABLE KEYS */;
 INSERT INTO `question` (`id`, `title`, `content`, `user_nick_name`, `user_id`, `createtime`, `status`, `page_views`, `public_status`, `modifytime`, `delete_status`, `tag_names`) VALUES
  (1, \'大量的if-eles要怎么优化?\', \'像这样有大量的if-else做判断,而且后续还会新增,每次新增都要再加一个if-else,有没有大佬来指导一下工作\', \'小陈\', 13, \'2021-03-09 14:39:25\', 0, 78, 1, NULL, 0, \'Java基础,SpringCloud\'),
  (2, \'jdk1.8对sycn做了什么优化?\', \'jdk1.8对sycn做了什么优化?\', \'小明同学\', 13, \'2021-03-09 15:12:28\', 0, 33, 1, NULL, 0, \'Java基础\'),
  (3, \'Eureka的多活请问那节课有的啊?\', \'双活系统是怎么做的啊?哪里有啊?谢谢\', \'小明同学\', 13, \'2021-03-09 23:39:39\', 0, 42, 1, NULL, 0, \'SpringCloud\'),
  (4, \'寻求mybatis二级缓存失效的解决方案\', \'我有一点疑问 ,关于 mybatis二级缓存的,因为二级缓存运用域在相同的namespace上,这时候这个namespace里面做了增删改,二级缓存就失效了,那我们可不可以采用多namespace在代码层面实现读写分离,也就是cqrs,这样是不是就可以避免二级缓存失效的问题\', \'小明同学\', 13, \'2021-03-10 12:05:03\', 0, 126, 0, NULL, 0, \'MyBatis\'),
  (5, \'springIOC容器中的bean在什么时候被实例化和初始化?\', \'容器中的bean在被使用之前是不是都是没有初始化的?那有没有被实例化呢?还是说被使用之前一直都是以beandefinition的实例保存在容器中,直到getBean方法被调用才会实例化和初始化?\', \'小明同学\', 13, \'2021-03-10 12:06:20\', 0, 75, 0, NULL, 0, \'Spring\'),
  (6, \'ES做全文搜索会过滤特殊符号怎么办?\', \'boolQuery.should(QueryBuilders.matchPhrasePrefixQuery(s.fieldName(), word).boost(s.boostScore()));\r\n或\r\nboolQuery.should(QueryBuilders.matchPhraseQuery(s.fieldName(), word).boost(s.boostScore()));\r\n\r\n使用这个方法搜索 x2-2 结果搜出来的是x22的结果 - 被屏蔽掉\r\n\r\n使用了转义也没有用 QueryParser.escape(word.toLowerCase())\', \'小明同学\', 13, \'2021-03-10 12:08:20\', 0, 128, 0, NULL, 0, \'搜索引擎\'),
  (7, \'阿里一道面试题\', \'题目:找出用户最爱歌曲风格\r\n假设有个用户唱歌的数据结构: Map<String, List> userSongs。 key是用户名,list是用户最近唱歌列表。\r\n有个歌曲风格的数据结构: Map<String, List> songGenres。 key是歌曲风格,list是歌曲列表。\r\n任务是返回一个用户最喜欢的歌曲风格map: Map<String, List>。 key是用户名,list是歌曲风格列表,list中的value是用户听的最多个歌曲对应的歌曲风格。\', \'小明同学\', 13, \'2021-03-10 16:57:53\', 0, 51, 1, NULL, 0, \'面试题\'),
  (8, \'JVM判断垃圾对象问题\', \'判断一个对象是否是垃圾对象的方法有两种:引用计数法和可达性分析法。\r\n请问:这两种方法是怎么使用的?是针对不同的运行时区域有不同的垃圾对象判断还是两者混合使用?\', \'小明同学\', 13, \'2021-03-10 16:58:33\', 0, 46, 0, NULL, 0, \'Java基础\'),
  (10, \'java反射\', \'有没有人清楚JDK1.7和1.8在反射调用实例方法上对参数检查处理上是否有差异?\r\n发现一段代码,对象有个com.edu.bean.A类型的属性type,反射调用setType(com.edu.A),在1.7环境中运行正常,1.8就报类型不匹配了。\r\n【PS】:先不用管type是com.edu.bean.A类型,为啥setType传入的参数是com.edu.bean.A的问题,希望能从反射原理帮忙解释一下为什么1.7和1.8会出现不同的现象。\', \'小明同学\', 13, \'2021-03-10 17:05:12\', 0, 23, 0, NULL, 0, \'Java基础\'),
  (11, \'Feign报错feign.FeignException$BadRequest: ....\', \'测试\', \'小明同学\', 13, \'2021-03-12 17:21:22\', 0, 12, 1, NULL, 0, \'Spring,SpringCloud\'),
  (12, \'Zookeeper源码分析中的Leader选举问题 java\', \'<p >类文件FastLeaderElection</p><p >// 缓存收到的票据<br >recvset.put(n.sid, new Vote(n.leader, n.zxid, n.electionEpoch, n.peerEpoch));</p><p >// Leader选举<br >if (termPredicate(recvset,new Vote(proposedLeader, proposedZxid,logicalclock.get(), proposedEpoch)))</p><p >// votes表示收到的外部选票的集合<br >// vote表示当前服务器的选票<br >protected boolean termPredicate(<br >HashMap&lt;Long, Vote&gt; votes,<br >Vote vote) {</p><pre ><code >HashSet&lt;Long&gt; set = new HashSet&lt;Long&gt;();\n\n/*\n * First make the views consistent. Sometimes peers will have\n * different zxids for a server depending on timing.\n *\n */\n// 遍历接收到的所有选票数据\nfor (Map.Entry&lt;Long,Vote&gt; entry : votes.entrySet()) {\n   //对选票进行归纳,就是把所有选票数据中和当前节点的票据相同的票据进行统计\n   if (vote.equals(entry.getValue())){ //对票据进行归纳\n       set.add(entry.getKey()); //如果存在2票,set里面是不是有2个?\n   }\n}\n\n//对选票进行判断\n// 判断当前节点的票数是否是大于一半,默认采用QuorumMaj来实现\nreturn self.getQuorumVerifier().containsQuorum(set); //验证\n</code></pre><p >}</p><p >问题:假如有3台机器的zookeeper集群(server1,server2,server3),那votes的最多存在2票,如果要选出Leader,那么必须所有机器都要统一votes才行,这样不就和"过半原则不符"了吗?</p><p ><img src="http://resource.straw.org.cn/upload_file/2020/06/03/a5c04f94-d6bc-43d5-b9b2-a343c7874ce1.jpg" data-filename="img" ><br></p><p ><br></p>\', \'小明同学\', 13, \'2021-03-12 17:33:46\', 0, 18, 1, NULL, 0, \'SpringCloud,面试题\'),
  (13, \'数据库已存在的大数据量的表如何进行分表\', \'<p><span >由于历史原因,系统中有一张表数据量逐年变大,变到了几千万甚至上亿,这些数据不能像日志一样定时归档和删除,求问怎么做分表?</span><br></p>\', \'小明同学\', 13, \'2021-03-13 10:51:36\', 0, 8, 0, NULL, 0, \'Java基础,MySQL\'),
  (14, \'springIOC容器中的bean在什么时候被实例化和初始化\', \'<p><span >容器中的bean在被使用之前是不是都是没有初始化的?那有没有被实例化呢?还是说被使用之前一直都是以beandefinition的实例保存在容器中,直到getBean方法被调用才会实例化和初始化?</span><br></p>\', \'小明同学\', 13, \'2021-03-13 12:21:16\', 0, 13, 0, NULL, 0, \'Spring,面试题\'),
  (15, \'springboot上传图片问题\', \'<p >使用springboot 上传图片指定到 resources/public目录下,可以通过浏览器直接访问。<br >如上传的文件为<br >resources/public/a.jpg</p><p >访问路径 :port/a.jpg</p><p >然而, springboot打包后是一个jar文件,那么public目录无法写文件,造成上传图片功能不可用,请问使用springboot上传到指定目录后通过应用服务如何访问?</p><p >前提,没有图片服务器,是通过 应用服务器访问的图片</p>\', \'范传奇\', 3, \'2021-03-13 16:03:12\', 0, 14, 0, NULL, 0, \'SpringBoot\'),
  (16, \'JSON方式实现深克隆\', \'<p><span >不明白为什么Java转成JSON,JSON再转成Java就成深克隆了。。</span></p><p><img src="http://resource.straw.org.cn/upload_file/2020/06/03/02be002f-0c9f-465b-b1c6-adc9b565c14b.png" data-filename="img" ><span ><br></span><br></p>\', \'李四同学\', 11, \'2021-03-15 23:51:10\', 0, 7, 0, NULL, 0, \'Java基础,面试题\'),
  (17, \'curl端口访问不通的问题\', \'<p><span >我这边centos7虚拟机通过curl :5601访问本机端口是正常的,但是通过具体的curl 具体ip:5601就不行,想请问一下是什么原因</span><img src="http://resource.straw.org.cn/upload_file/2020/06/03/f1398444-1a5f-45ba-8e49-df3d197bd572.png" data-filename="img" ><br></p>\', \'李四同学\', 11, \'2021-03-16 14:45:46\', 0, 16, 0, NULL, 0, \'Linux,CentOS\'),
  (18, \'【大厂面试题2020/3/15】\', \'<p >关于JSP生命周期的叙述,下列哪些为真?</p><p >A、JSP会先解释成Servlet源文件,然后编译成Servlet类文件<br >B、每当用户端运行JSP时,jsp init()方法都会运行一次<br >C、每当用户端运行JSP时,jsp service()方法都会运行一次<br >D、每当用户端运行JSP时,jsp destroy()方法都会运行一次</p>\', \'李四同学\', 11, \'2021-03-16 15:20:12\', 0, 21, 0, NULL, 0, \'面试题\'),
  (19, \'dubbo负载均衡问题\', \'<p><span >服务端已限制每个节点的dubbo.protocol.threads限制数为600,尝试过使用各种负载均衡策略,及调整每个节点的负载权重,但并发较高时仍是不能分配均衡,总有几个节点会满负载,不清楚是什么原因造成的,该如何解决?</span><br></p>\', \'李四同学\', 11, \'2021-03-19 09:52:40\', 0, 6, 0, NULL, 0, \'Dubbo\'),
  (20, \'数据库已存在的大数据量的表如何进行分表\', \'<p><span >由于历史原因,系统中有一张表数据量逐年变大,变到了几千万甚至上亿,这些数据不能像日志一样定时归档和删除,求问怎么做分表?</span><br></p>\', \'李四同学\', 11, \'2021-03-19 12:05:20\', 0, 7, 0, NULL, 0, \'Java基础,MySQL\'),
  (25, \'求一个优化的薪酬计算方案\', \'<p><span >薪酬计算方案:目前很简单,就是根据不同薪酬计算方式归类,然后分步计算后加入到待入库集合中统一插入,但是在计算过程中需要请求多次数据库,因为不同的计算方式都在数据库中保存,哪位大神帮忙提供下方案!!!</span><br></p>\', \'李四同学\', 11, \'2021-03-19 14:57:38\', 0, 12, 0, NULL, 0, \'Java基础\'),
  (26, \'springboot内置tomcat配置疑问\', \'<p><span >spring-boot-autoconfigure 版本为1.5.9 和 2.0.1时,如图所示,很多tomact参数为0,如最大线程maxThreads,在 2.0.7版本中最大线程为200,<br >那么问题来了,我们平时看资料说 springboot内置tomcat默认线程为200,那么在1.5.9 和 2.0.1默认最大线程为0的情况下,如果不显示声明线程池大小的情况下,那么该项目的最大线程是否就为0?大佬们解答一下我的疑问</span><br></p>\', \'李四同学\', 11, \'2021-03-19 16:14:17\', 0, 20, 0, NULL, 0, \'Web\'),
  (31, \'【大厂面试题2020/4/1】\', \'<p >下面哪个描述正确? ()</p><p >A、echo $$返回登录shell的PID和echo $? 返回上一个命令的状态<br >B、echo $$返回上一个命令和echo $的状态? 返回登录shell的PID<br >C、echo $$和echo $? 返回一些无意义的整数值<br >D、所有陈述都是错误的</p>\', \'chenhaibao\', 23, \'2021-04-01 15:02:53\', 0, 5, 0, NULL, 0, \'面试题\'),
  (103, \'JDK 和 JRE 有什么区别?\', \'<p>JDK 和 JRE 有什么区别?<br></p>\', \'李四同学\', 11, \'2021-04-23 15:11:49\', 0, 2, 0, NULL, 0, \'Java基础,Java OOP\'),
  (104, \'== 和 equals 的区别是什么?\', \'<p><span >== 和 equals 的区别是什么?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:13:10\', 1, 10, 0, NULL, 0, \'Java基础\'),
  (105, \'两个对象的 hashCode()相同,则 equals()也一定为 true,对吗?\', \'<p><span >两个对象的 hashCode()相同,则 equals()也一定为 true,对吗?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:14:28\', 0, 2, 0, NULL, 0, \'Java基础,面试题\'),
  (106, \'final 在 java 中有什么作用?\', \'<p><span >final 在 java 中有什么作用?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:15:20\', 0, 3, 0, NULL, 0, \'Java基础,Java SE,面试题\'),
  (107, \'Collection 和 Collections 有什么区别?\', \'<p><span >Collection 和 Collections 有什么区别?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:16:15\', 0, 3, 0, NULL, 0, \'Java SE,面试题\'),
  (108, \'HashMap 和 Hashtable 有什么区别?\', \'<p><span >HashMap 和 Hashtable 有什么区别?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:16:56\', 0, 1, 0, NULL, 0, \'Java基础,Java SE\'),
  (109, \'说一下 HashMap 的实现原理?\', \'<p><span >说一下 HashMap 的实现原理?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:17:22\', 0, 9, 0, NULL, 0, \'Java基础,面试题\'),
  (110, \'什么是 java 序列化?什么情况下需要序列化?\', \'<p><span >什么是 java 序列化?什么情况下需要序列化?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:18:31\', 0, 3, 0, NULL, 0, \'Java基础,面试题\'),
  (111, \'jsp 和 servlet 有什么区别?\', \'<p><span >jsp 和 servlet 有什么区别?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:19:09\', 0, 3, 0, NULL, 0, \'Servlet,面试题\'),
  (114, \'spring 常用的注入方式有哪些?\', \'<p><span >spring 常用的注入方式有哪些?</span><br></p>\', \'李四同学\', 11, \'2021-04-23 15:21:23\', 2, 46, 0, NULL, 0, \'Spring,面试题\'),
  (115, \'什么是 spring cloud?\', \'<p><span >•</span><strong >什么是 spring cloud?</strong></p>\', \'风继续吹\', 28, \'2021-04-28 17:42:06\', 2, 18, 0, NULL, 0, \'SpringCloud,面试题\'),
  (116, \'spring cloud 断路器的作用是什么?\', \'<h2 ><strong>spring cloud 断路器的作用是什么??</strong></h2>\', \'风继续吹\', 28, \'2021-04-28 17:44:11\', 0, 14, 0, NULL, 0, \'SpringCloud,面试题\'),
  (118, \'jsp内置对象和作用?\', \'<p >jsp内置对象和作用?<br></p>\', \'李四同学\', 11, \'2021-04-29 09:31:50\', 1, 26, 0, NULL, 0, \'Servlet,面试题\'),
  (119, \'Java如何安装\', \'如何下载安装Java呀?\', \'天王盖地虎\', 30, \'2021-04-30 12:19:22\', 0, 32, 0, NULL, 0, \'Java基础,Java SE\'),
  (121, \'JSON数据格式是啥?\', \'<p>JSON数据格式是啥样子的?<br></p>\', \'天王盖地虎\', 30, \'2021-04-30 15:49:47\', 1, 46, 0, NULL, 0, \'Web\'),
  (123, \'jdk1.8有哪些新特性\', \'<p>请老师具体描述一下?</p>\', \'晓峰-学员\', 42, \'2021-05-07 14:12:17\', 2, 22, 0, NULL, 0, \'Java基础\'),
  (124, \'JDK 和 JRE 有什么区别?\', \'<p><span >JDK 和 JRE 有什么区别?</span><br></p>\', \'李四同学\', 11, \'2021-05-11 12:22:49\', 1, 24, 0, NULL, 0, \'Java基础,面试题\'),
  (125, \'在eclipse 工具中编写java代码提示问题\', \'<p>老师您好,我看您在写代码的过程中会有java代码提示,我的写代码没有提示,需要如何设置呢?</p>\', \'baozi\', 43, \'2021-05-11 15:47:36\', 2, 60, 1, NULL, 0, \'Java基础\'),
  (126, \'eclipse代码中每行的开始和结尾出现多余的特殊符号\', \'<p>老师您好,我在写飞机大战项目的时候也不知道误碰了什么,当前代码显示很多特殊符号,视觉看着很不舒服,如何能取消这些特殊符号呢?请老师解答,感谢老师!!!<img src="http://resource.straw.org.cn/upload_file/2020/05/12/ba9886c2-62fa-4087-bd8f-46db15f63d01.png" data-filename="img" ></p>\', \'baozi\', 43, \'2021-05-12 00:14:26\', 2, 26, 1, NULL, 0, \'Java OOP\'),
  (127, \'equals和==的区别是啥\', \'<p>老师请问equals方法和==的区别是啥啊</p>\', \'旧约0315\', 44, \'2021-05-12 10:15:21\', 2, 12, 0, NULL, 0, \'Java基础\'),
  (128, \'.java源文件的类的问题\', \'<h2><span lang="EN-US" >2.</span><span >一个<span lang="EN-US">".java"</span>源文件中是否可以包括多个类(不算内部类)?有什么限制?<span lang="EN-US"><o:p></o:p></span></span></h2>\', \'林森666\', 45, \'2021-05-12 10:16:12\', 1, 9, 0, NULL, 0, \'Java基础\'),
  (129, \'关键字\', \'<p>java中关键字这个名词是什么意思啊</p>\', \'林森666\', 45, \'2021-05-12 10:19:41\', 1, 10, 0, NULL, 0, \'Java基础\'),
  (130, \'服务器端启动失败\', \'<p>老师我启动服务器的时候总是报这个错是什么原因啊??</p><p><img src="http://resource.straw.org.cn/upload_file/2020/05/12/3e8709e0-460c-485c-ae6c-5ac2f4a01dbe.png" data-filename="img" ><br></p>\', \'旧约0315\', 44, \'2021-05-12 10:33:32\', 2, 16, 0, NULL, 0, \'Java SE\'),
  (131, \'eclipse 如何导入项目?\', \'项目不小心删除了。怎么把项目“复制”到eclipse中?\', \'李大帅\', 32, \'2021-05-12 14:17:44\', 1, 12, 0, NULL, 0, \'Java基础\'),
  (132, \'WebServer 项目状态行问题\', \'<p>老师您好,在学习 WebServer 项目时您给我们讲了有关于HTTP 协议中的状态行,但是我没记住用空格间隔的三个都代表什么?</p>\', \'baozi\', 43, \'2021-05-13 16:43:02\', 2, 15, 1, NULL, 0, \'WebServer\'),
  (133, \'Java中方法重载和重写的区别\', \'<p>请问的方法中重写和重载的区别都是什么,如何使用</p>\', \'gsy\', 46, \'2021-05-13 18:48:10\', 1, 13, 0, NULL, 0, \'Java OOP\'),
  (134, \'eclipse如何修改字符集\', \'<h1 title="eclipse如何修改字符集" >eclipse如何修改字符集</h1>\', \'李大帅\', 32, \'2021-05-14 17:45:53\', 1, 6, 0, NULL, 0, \'Java基础\'),
  (135, \'java 中正则表达式中\\处理问题\', \'<p>老师您好,我在学习正则表达式的时候,我想匹配一个\\(反斜杠),我在前面加一个转义符\\后不好用,需要怎么写啊?</p>\', \'baozi\', 43, \'2021-05-16 12:37:53\', 2, 6, 0, NULL, 0, \'Java SE\'),
  (136, \'什么是对象序列化和反序列化\', \'<p>老师,请问什么是对象序列化和对象反序列化,为啥要做对象序列化啊?</p>\', \'旧约0315\', 44, \'2021-05-16 13:30:58\', 2, 8, 0, NULL, 0, \'Java SE\'),
  (137, \'客户端和服务器端之间的通讯是基于什么\', \'<p>老师,请问客户端和服务器端的通讯是怎么通讯的啊,Socket是什么?</p>\', \'旧约0315\', 44, \'2021-05-16 13:34:09\', 2, 14, 0, NULL, 0, \'Java SE\'),
  (138, \'WIN7、WIN10配置环境变量\', \'<p>请老师分别详细描述一下这两个系统配置环境变量的步骤。</p>\', \'山西 - JAVA\', 48, \'2021-05-25 13:42:40\', 1, 18, 0, NULL, 0, \'Java基础\'),
  (139, \'eclispe如何修改字体大小?\', \'<p>eclispe的字体太小了,该如何修改?<br></p>\', \'山西 - JAVA\', 48, \'2021-05-28 17:18:59\', 1, 17, 0, NULL, 0, \'Java基础\'),
  (140, \'eclispe更换项目空间\', \'<p>老师老师,我想要更换eclipse的工作空间,该怎么更换啊</p>\', \'山西 - JAVA\', 48, \'2021-05-29 20:09:58\', 1, 9, 0, NULL, 0, \'Java基础\'),
  (141, \'报错editor not contain a main type\', \'<p>老师我在运行代码的时候报错editor not contain a main type怎么办?</p><p><br></p>\', \'山西 - JAVA\', 48, \'2021-05-30 15:30:46\', 1, 6, 0, NULL, 0, \'Java基础\'),
  (142, \'分数用什么类型表示,分数之间是如何去运算的?\', \'<p><span >老师,我想问一下,分数什么类型表示,分数之间是如何去运算的</span><br></p>\', \'山西 - JAVA\', 48, \'2021-05-30 15:32:53\', 1, 6, 0, NULL, 0, \'Java基础\'),
  (143, \'long整型赋值必须要加L吗\', \'<p><span >老师long整型赋值必须要加L吗,我写的long a = 100 不加L也没报错呀</span><br></p>\', \'山西 - JAVA\', 48, \'2021-05-30 15:33:50\', 1, 9, 0, NULL, 0, \'Java基础\'),
  (144, \'main方法\', \'<p><span >老师,main的意思是什么呀,不太懂这个词,后面括号里面的又代表什么意思呢</span><br></p>\', \'山西 - JAVA\', 48, \'2021-05-30 15:35:01\', 1, 8, 0, NULL, 0, \'Java基础\'),
  (145, \'eclipse新建项目\', \'<p>老师我们在eclipse里新建项目点哪个呢?</p>\', \'山西 - JAVA\', 48, \'2021-05-30 19:56:18\', 1, 9, 0, NULL, 0, \'Java基础\'),
  (146, \'eclipse如何导出项目\', \'老师我写在eclipse里的项目怎么导出呢\', \'吉林JSD\', 48, \'2021-05-30 20:05:11\', 1, 31, 0, NULL, 0, \'Java基础\'),
  (147, \'删除JDK之后我的代码还在吗?\', \'<p>老师,我想删除JDK后再安装一个新版本的,这样我的代码也会被删除吗</p>\', \'山西 - JAVA\', 48, \'2021-05-30 20:19:12\', 1, 8, 0, NULL, 0, \'Java基础\'),
  (148, \'转义字符\', \'<p>特殊符号用\\来转义,这种情况可能发生在什么时候会发生<br></p>\', \'山西 - JAVA\', 48, \'2021-05-30 20:21:29\', 1, 12, 0, NULL, 0, \'Java基础\');
 /*!40000 ALTER TABLE `question` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.question_tag 结构
 CREATE TABLE IF NOT EXISTS `question_tag` (
   `id` int(20) NOT NULL AUTO_INCREMENT,
   `question_id` int(20) NOT NULL,
   `tag_id` int(20) NOT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=255 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.question_tag 的数据:~102 rows (大约)
 /*!40000 ALTER TABLE `question_tag` DISABLE KEYS */;
 INSERT INTO `question_tag` (`id`, `question_id`, `tag_id`) VALUES
  (1, 1, 1),
  (2, 2, 1),
  (3, 3, 14),
  (4, 1, 14),
  (5, 4, 11),
  (6, 5, 9),
  (7, 6, 16),
  (8, 7, 15),
  (9, 8, 1),
  (10, 9, 17),
  (11, 10, 1),
  (12, 11, 9),
  (13, 11, 14),
  (16, 13, 1),
  (17, 13, 7),
  (18, 14, 9),
  (19, 14, 15),
  (20, 15, 13),
  (21, 16, 1),
  (22, 16, 15),
  (23, 17, 18),
  (24, 17, 19),
  (25, 18, 15),
  (26, 19, 20),
  (27, 20, 1),
  (28, 20, 7),
  (34, 25, 1),
  (35, 26, 6),
  (36, 27, 1),
  (37, 27, 15),
  (38, 28, 1),
  (39, 28, 15),
  (40, 29, 14),
  (41, 29, 15),
  (43, 31, 15),
  (182, 103, 1),
  (183, 103, 2),
  (184, 104, 1),
  (185, 105, 1),
  (186, 105, 15),
  (187, 106, 1),
  (188, 106, 3),
  (189, 106, 15),
  (190, 107, 3),
  (191, 107, 15),
  (192, 108, 1),
  (193, 108, 3),
  (194, 109, 1),
  (195, 109, 15),
  (196, 110, 1),
  (197, 110, 15),
  (198, 111, 8),
  (199, 111, 15),
  (200, 112, 8),
  (201, 112, 15),
  (202, 113, 9),
  (203, 113, 15),
  (204, 114, 9),
  (205, 114, 15),
  (206, 115, 14),
  (207, 115, 15),
  (210, 117, 8),
  (211, 117, 9),
  (212, 117, 15),
  (213, 118, 8),
  (214, 118, 15),
  (215, 119, 1),
  (216, 119, 3),
  (217, 120, 1),
  (218, 121, 6),
  (219, 116, 14),
  (220, 116, 15),
  (221, 122, 7),
  (222, 123, 1),
  (227, 124, 1),
  (228, 124, 15),
  (229, 125, 1),
  (230, 126, 2),
  (231, 127, 1),
  (232, 128, 1),
  (233, 129, 1),
  (234, 130, 3),
  (235, 131, 1),
  (236, 132, 4),
  (237, 133, 2),
  (238, 134, 1),
  (239, 135, 3),
  (240, 136, 3),
  (241, 137, 3),
  (242, 138, 1),
  (243, 139, 1),
  (244, 140, 1),
  (245, 141, 1),
  (246, 142, 1),
  (247, 143, 1),
  (248, 144, 1),
  (249, 145, 1),
  (250, 146, 1),
  (251, 147, 1),
  (252, 148, 1),
  (253, 12, 14),
  (254, 12, 15);
 /*!40000 ALTER TABLE `question_tag` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.role 结构
 CREATE TABLE IF NOT EXISTS `role` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `name` varchar(255) NOT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.role 的数据:~3 rows (大约)
 /*!40000 ALTER TABLE `role` DISABLE KEYS */;
 INSERT INTO `role` (`id`, `name`) VALUES
  (1, \'ROLE_ADMIN\'),
  (2, \'ROLE_STUDENT\'),
  (3, \'ROLE_TEACHER\');
 /*!40000 ALTER TABLE `role` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.role_permission 结构
 CREATE TABLE IF NOT EXISTS `role_permission` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `role_id` int(11) NOT NULL,
   `permission_id` int(11) NOT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.role_permission 的数据:~14 rows (大约)
 /*!40000 ALTER TABLE `role_permission` DISABLE KEYS */;
 INSERT INTO `role_permission` (`id`, `role_id`, `permission_id`) VALUES
  (1, 1, 1),
  (2, 1, 2),
  (3, 1, 3),
  (4, 1, 4),
  (5, 1, 5),
  (6, 2, 1),
  (7, 2, 2),
  (8, 2, 3),
  (9, 2, 4),
  (11, 3, 1),
  (12, 3, 2),
  (13, 3, 3),
  (14, 3, 4),
  (15, 3, 5);
 /*!40000 ALTER TABLE `role_permission` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.tag 结构
 CREATE TABLE IF NOT EXISTS `tag` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `name` varchar(255) NOT NULL,
   `createby` varchar(255) NOT NULL,
   `createtime` datetime NOT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.tag 的数据:~20 rows (大约)
 /*!40000 ALTER TABLE `tag` DISABLE KEYS */;
 INSERT INTO `tag` (`id`, `name`, `createby`, `createtime`) VALUES
  (1, \'Java基础\', \'admin\', \'2021-03-09 14:39:48\'),
  (2, \'Java OOP\', \'admin\', \'2021-03-09 23:30:09\'),
  (3, \'Java SE\', \'admin\', \'2021-03-09 23:32:13\'),
  (4, \'WebServer\', \'admin\', \'2021-03-09 23:32:50\'),
  (5, \'二进制\', \'admin\', \'2021-03-09 23:33:18\'),
  (6, \'Web\', \'admin\', \'2021-03-09 23:33:58\'),
  (7, \'MySQL\', \'admin\', \'2021-03-09 23:34:20\'),
  (8, \'Servlet\', \'admin\', \'2021-03-09 23:34:40\'),
  (9, \'Spring\', \'admin\', \'2021-03-09 23:34:58\'),
  (10, \'SpringMVC\', \'admin\', \'2021-03-09 23:35:17\'),
  (11, \'MyBatis\', \'admin\', \'2021-03-09 23:35:38\'),
  (12, \'Ajax\', \'admin\', \'2021-03-09 23:36:02\'),
  (13, \'SpringBoot\', \'admin\', \'2021-03-09 23:36:22\'),
  (14, \'SpringCloud\', \'admin\', \'2021-03-09 23:36:43\'),
  (15, \'面试题\', \'admin\', \'2021-03-09 23:37:28\'),
  (16, \'搜索引擎\', \'admin\', \'2021-03-09 23:40:47\'),
  (17, \'Docker\', \'admin\', \'2021-03-10 17:19:05\'),
  (18, \'Linux\', \'admin\', \'2021-03-16 14:44:04\'),
  (19, \'CentOS\', \'admin\', \'2021-03-16 14:44:22\'),
  (20, \'Dubbo\', \'admin\', \'2021-03-19 09:52:09\');
 /*!40000 ALTER TABLE `tag` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.user 结构
 CREATE TABLE IF NOT EXISTS `user` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `username` varchar(50) NOT NULL COMMENT \'用户名\',
   `nickname` varchar(50) DEFAULT NULL COMMENT \'昵称\',
   `password` varchar(255) NOT NULL COMMENT \'密码\',
   `sex` enum(\'男\',\'女\',\'保密\') DEFAULT \'保密\' COMMENT \'性别\',
   `birthday` date DEFAULT NULL COMMENT \'生日\',
   `phone` varchar(20) DEFAULT NULL COMMENT \'电话号码\',
   `classroom_id` int(11) DEFAULT NULL COMMENT \'所属班级id\',
   `createtime` datetime NOT NULL COMMENT \'注册时间\',
   `enabled` tinyint(4) NOT NULL COMMENT \'账号是否可用,0-》否,1-》是\',
   `locked` tinyint(4) NOT NULL COMMENT \'账号是否被锁住,0-》否,1-》是\',
   `type` tinyint(4) DEFAULT NULL COMMENT \'0-》学生,1-》回答问题的老师\',
   `self_introduction` varchar(255) DEFAULT NULL COMMENT \'自我介绍\',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.user 的数据:~46 rows (大约)
 /*!40000 ALTER TABLE `user` DISABLE KEYS */;
 INSERT INTO `user` (`id`, `username`, `nickname`, `password`, `sex`, `birthday`, `phone`, `classroom_id`, `createtime`, `enabled`, `locked`, `type`, `self_introduction`) VALUES
  (1, \'admin\', \'admin\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-03 15:04:48\', 1, 0, 0, NULL),
  (2, \'tc1\', \'花倩\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:34:40\', 1, 0, 1, NULL),
  (3, \'tc2\', \'范传奇\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:42:05\', 1, 0, 1, NULL),
  (4, \'wangkj\', \'王克晶\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:42:49\', 1, 0, 1, NULL),
  (5, \'liugb\', \'刘国斌\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:44:13\', 1, 0, 1, NULL),
  (6, \'chengh\', \'成恒\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:51:58\', 1, 0, 1, NULL),
  (7, \'zhanghl\', \'张皓岚\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:52:28\', 1, 0, 1, NULL),
  (8, \'chengzh\', \'程祖红\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:53:45\', 1, 0, 1, NULL),
  (9, \'liucs\', \'刘苍松\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 14:54:06\', 1, 0, 1, NULL),
  (10, \'st1\', \'张三同学\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 22:35:36\', 1, 0, 0, NULL),
  (11, \'st2\', \'李四同学\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 22:36:59\', 1, 0, 0, NULL),
  (12, \'wangw\', \'王五同学\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-13 22:37:27\', 1, 0, 0, NULL),
  (13, \'xiaom\', \'小明同学\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-03-19 16:09:03\', 1, 0, 0, NULL),
  (28, \'18601962***\', \'风继续吹\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 1, \'2021-04-28 17:39:38\', 1, 0, 0, NULL),
  (29, \'18501927***\', \'陈海宝\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 1, \'2021-04-29 17:08:05\', 1, 0, 0, NULL),
  (30, \'15601035***\', \'天王盖地虎\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-04-30 12:18:04\', 1, 0, 0, NULL),
  (31, \'g-yuyang\', \'于洋\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:44:04\', 1, 0, 1, NULL),
  (32, \'g-lids\', \'李大帅\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:44:56\', 1, 0, 1, NULL),
  (33, \'guanjp\', \'关敬培\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:45:45\', 1, 0, 1, NULL),
  (34, \'baojq\', \'包佳奇\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:50:00\', 1, 0, 1, NULL),
  (35, \'g-zhaoxj\', \'赵秀佳\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:50:47\', 1, 0, 1, NULL),
  (36, \'lindf\', \'林得富\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:52:21\', 1, 0, 1, NULL),
  (37, \'juchao\', \'爼超\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 11:01:00\', 1, 0, 1, NULL),
  (38, \'g-gaosy\', \'高书瑀\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 11:04:58\', 1, 0, 1, NULL),
  (39, \'chenrf\', \'陈瑞丰\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:39:39\', 1, 0, 1, NULL),
  (40, \'linsen\', \'林森\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:41:53\', 1, 0, 1, NULL),
  (41, \'dengyn\', \'邓雅宁\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, NULL, \'2021-05-07 10:43:02\', 1, 0, 1, NULL),
  (42, \'15011339***\', \'晓峰-学员\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 1, \'2021-05-07 14:09:59\', 1, 0, 0, NULL),
  (43, \'17600507***\', \'baozi\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 1, \'2021-05-11 15:41:45\', 1, 0, 0, NULL),
  (44, \'18500690***\', \'旧约0315\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-12 10:13:13\', 1, 0, 0, NULL),
  (45, \'18640969***\', \'林森666\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 1, \'2021-05-12 10:14:25\', 1, 0, 0, NULL),
  (46, \'17621874***\', \'gsy\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 4, \'2021-05-13 18:45:26\', 1, 0, 0, NULL),
  (47, \'18409448***\', \'Anma\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 1, \'2021-05-15 16:33:25\', 1, 0, 0, NULL),
  (48, \'15903436***\', \'山西 - JAVA\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 4, \'2021-05-25 13:39:29\', 1, 0, 0, NULL),
  (49, \'15819498***\', \'Te Fuir\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-01 20:37:54\', 1, 0, 0, NULL),
  (50, \'18444161***\', \'小鱼干\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-01 20:38:16\', 1, 0, 0, NULL),
  (51, \'15531554***\', \'彭于晏\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-01 20:38:33\', 1, 0, 0, NULL),
  (52, \'15072125***\', \'璇儿妹妹\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-01 20:40:29\', 1, 0, 0, NULL),
  (53, \'15231114***\', \'中坚力量\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-02 10:50:32\', 1, 0, 0, NULL),
  (54, \'18515561***\', \'乱世小熊\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-02 10:52:29\', 1, 0, 0, NULL),
  (55, \'17662585***\', \'stu\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-02 11:49:16\', 1, 0, 0, NULL),
  (56, \'13500724***\', \'维尼小熊\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-04 20:37:42\', 1, 0, 0, NULL),
  (57, \'18568759***\', \'開心宝貝\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-04 21:21:34\', 1, 0, 0, NULL),
  (58, \'18268895***\', \'破人来学JAVA\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 4, \'2021-05-17 15:23:55\', 1, 0, 0, NULL),
  (59, \'15061075***\', \'卿堇123\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 4, \'2021-05-17 15:29:30\', 1, 0, 0, NULL),
  (60, \'13026130***\', \'hpJava\', \'{bcrypt}$2a$10$ELGiEhKyLlO9r3.WVOkHDe16JTCKCErcABhElD5CF7ZwQ.Hm6sVRW\', \'保密\', NULL, NULL, 3, \'2021-05-24 17:41:00\', 1, 0, 0, NULL);
 /*!40000 ALTER TABLE `user` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.user_collect 结构
 CREATE TABLE IF NOT EXISTS `user_collect` (
   `id` int(11) NOT NULL AUTO_INCREMENT COMMENT \'主键id\',
   `user_id` int(11) NOT NULL COMMENT \'用户id\',
   `question_id` int(11) NOT NULL COMMENT \'问题id\',
   `createtime` datetime NOT NULL COMMENT \'收藏时间\',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.user_collect 的数据:~5 rows (大约)
 /*!40000 ALTER TABLE `user_collect` DISABLE KEYS */;
 INSERT INTO `user_collect` (`id`, `user_id`, `question_id`, `createtime`) VALUES
  (4, 11, 108, \'2021-05-08 09:28:29\'),
  (5, 11, 109, \'2021-05-08 09:32:09\'),
  (6, 11, 105, \'2021-05-09 00:50:41\'),
  (8, 11, 132, \'2021-05-08 09:01:37\'),
  (11, 11, 10, \'2021-05-06 11:08:38\');
 /*!40000 ALTER TABLE `user_collect` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.user_question 结构
 CREATE TABLE IF NOT EXISTS `user_question` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `user_id` int(11) NOT NULL,
   `question_id` int(11) NOT NULL,
   `createtime` datetime DEFAULT NULL,
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=260 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.user_question 的数据:~69 rows (大约)
 /*!40000 ALTER TABLE `user_question` DISABLE KEYS */;
 INSERT INTO `user_question` (`id`, `user_id`, `question_id`, `createtime`) VALUES
  (1, 3, 1, \'2021-04-01 12:48:50\'),
  (2, 3, 2, \'2021-04-01 12:48:58\'),
  (3, 3, 3, \'2021-04-01 12:49:05\'),
  (4, 3, 4, \'2021-04-01 12:49:10\'),
  (5, 3, 5, \'2021-04-01 12:49:21\'),
  (6, 3, 6, \'2021-04-01 12:49:27\'),
  (7, 3, 7, \'2021-04-01 12:49:35\'),
  (8, 3, 8, \'2021-04-01 12:49:42\'),
  (9, 3, 9, \'2021-04-01 12:49:49\'),
  (10, 3, 10, \'2021-04-01 12:49:56\'),
  (11, 3, 11, \'2021-04-01 12:50:03\'),
  (12, 3, 12, \'2021-04-01 12:50:13\'),
  (91, 4, 70, \'2021-04-03 11:18:20\'),
  (92, 8, 70, \'2021-04-03 12:58:44\'),
  (93, 8, 63, \'2021-04-03 14:19:56\'),
  (94, 8, 47, \'2021-04-03 15:45:59\'),
  (95, 8, 46, \'2021-04-03 15:45:59\'),
  (96, 8, 50, \'2021-04-03 15:47:29\'),
  (97, 8, 43, \'2021-04-03 15:48:16\'),
  (98, 8, 42, \'2021-04-03 15:48:16\'),
  (99, 8, 53, \'2021-04-03 15:49:25\'),
  (100, 8, 52, \'2021-04-03 15:49:25\'),
  (101, 3, 71, \'2021-04-03 17:43:11\'),
  (102, 4, 71, \'2021-04-03 17:43:11\'),
  (103, 8, 12, \'2021-04-03 17:44:47\'),
  (107, 3, 74, \'2021-04-08 10:36:45\'),
  (108, 4, 74, \'2021-04-08 10:36:45\'),
  (109, 2, 75, \'2021-04-08 15:48:28\'),
  (110, 4, 75, \'2021-04-08 15:48:28\'),
  (111, 1, 10, \'2021-04-09 17:18:02\'),
  (112, 8, 10, \'2021-04-09 17:22:50\'),
  (113, 7, 10, \'2021-04-09 17:30:18\'),
  (114, 2, 9, \'2021-04-09 17:32:19\'),
  (115, 2, 4, \'2021-04-09 17:33:11\'),
  (116, 2, 10, \'2021-04-09 19:09:11\'),
  (117, 4, 7, \'2021-04-09 19:22:39\'),
  (178, 4, 105, \'2021-04-20 12:17:29\'),
  (179, 8, 105, \'2021-04-20 12:17:29\'),
  (180, 4, 106, \'2021-04-20 12:17:42\'),
  (181, 8, 106, \'2021-04-20 12:17:42\'),
  (186, 4, 109, \'2021-04-22 17:18:55\'),
  (187, 8, 109, \'2021-04-22 17:18:55\'),
  (188, 4, 110, \'2021-04-22 17:19:20\'),
  (189, 8, 110, \'2021-04-22 17:19:20\'),
  (190, 9, 109, \'2021-04-28 10:53:42\'),
  (197, 9, 113, \'2021-04-28 23:55:21\'),
  (198, 8, 113, \'2021-04-28 23:55:21\'),
  (199, 5, 113, \'2021-04-28 23:55:21\'),
  (200, 9, 114, \'2021-04-29 00:05:39\'),
  (201, 6, 114, \'2021-04-29 00:05:39\'),
  (202, 8, 114, \'2021-04-29 00:05:39\'),
  (203, 2, 115, \'2021-05-03 01:36:23\'),
  (204, 4, 115, \'2021-05-03 01:36:23\'),
  (205, 9, 115, \'2021-05-03 01:36:23\'),
  (206, 2, 116, \'2021-05-03 01:37:35\'),
  (207, 4, 116, \'2021-05-03 01:37:35\'),
  (208, 9, 116, \'2021-05-03 01:37:35\'),
  (248, 2, 117, \'2021-05-04 10:22:07\'),
  (249, 4, 117, \'2021-05-04 10:22:07\'),
  (250, 9, 117, \'2021-05-04 10:22:07\'),
  (251, 9, 118, \'2021-05-04 11:00:53\'),
  (252, 5, 118, \'2021-05-04 11:00:53\'),
  (253, 9, 119, \'2021-05-06 17:31:58\'),
  (254, 4, 120, \'2021-05-11 14:27:35\'),
  (255, 9, 120, \'2021-05-11 14:27:35\'),
  (256, 4, 121, \'2021-05-11 14:48:22\'),
  (257, 9, 121, \'2021-05-11 14:48:22\'),
  (258, 9, 122, \'2021-05-11 17:50:09\'),
  (259, 4, 123, \'2021-05-11 22:52:23\');
 /*!40000 ALTER TABLE `user_question` ENABLE KEYS */;
 ​
 ​
 -- 导出 表 knows.user_role 结构
 CREATE TABLE IF NOT EXISTS `user_role` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `user_id` int(11) NOT NULL COMMENT \'用户id\',
   `role_id` int(11) NOT NULL COMMENT \'角色id\',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
 ​
 -- 正在导出表 knows.user_role 的数据:~48 rows (大约)
 /*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
 INSERT INTO `user_role` (`id`, `user_id`, `role_id`) VALUES
  (1, 1, 1),
  (2, 1, 2),
  (3, 1, 3),
  (4, 2, 3),
  (5, 3, 3),
  (6, 4, 3),
  (7, 5, 3),
  (8, 6, 3),
  (9, 7, 3),
  (10, 8, 3),
  (11, 9, 3),
  (12, 10, 2),
  (13, 11, 2),
  (14, 12, 2),
  (15, 13, 2),
  (25, 28, 2),
  (26, 29, 2),
  (27, 30, 2),
  (28, 31, 3),
  (29, 32, 3),
  (30, 33, 3),
  (31, 34, 3),
  (32, 35, 3),
  (33, 36, 3),
  (34, 37, 3),
  (35, 38, 3),
  (36, 39, 3),
  (37, 40, 3),
  (38, 41, 3),
  (39, 42, 2),
  (40, 43, 2),
  (41, 44, 2),
  (42, 45, 2),
  (43, 46, 2),
  (44, 47, 2),
  (45, 48, 2),
  (46, 49, 2),
  (47, 50, 2),
  (48, 51, 2),
  (49, 52, 2),
  (50, 53, 2),
  (51, 54, 2),
  (52, 55, 2),
  (53, 56, 2),
  (54, 57, 2),
  (55, 58, 2),
  (56, 59, 2),
  (57, 60, 2);
 /*!40000 ALTER TABLE `user_role` 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 */;
 ​

  将该sql文件部署到云主机上面:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zwzdfs.html