- 博客(149)
- 收藏
- 关注
原创 mysql中出现emoji表情,如何存储并回显给前端的
mysql中出现emoji表情,如何存储并回显给前端的<!-- https://mvnrepository.com/artifact/com.vdurmont/emoji-java --><dependency> <groupId>com.vdurmont</groupId> <artifactId>emoji-java</artifactId> <version>5.1.1</vers
2021-05-08 14:24:01
295
原创 2020-10-29
import com.fasterxml.jackson.databind.DeserializationFeature;import com.fasterxml.jackson.databind.ObjectMapper;import java.util.Arrays;import java.util.List;import java.util.Map;/** * Json序列化工具类 * * @author liyibo * @date 2020/10/21 */publi.
2020-10-29 16:30:25
207
原创 判断是否为满二叉树
public class A { class Tree{ int value; Tree left; Tree right; public Tree(int value) { this.value = value; } } //判断是否为满二叉树 public static boolean isFBT(Tree tree){ //如果为空,不是满二.
2020-09-15 16:09:28
416
原创 Git SSH Key 生成步骤---windows版本
找到git的安装路径 然后打开./usr/bin 运行ssh-keygen.exe,一步步的回车就行 会在C:\Users\当前windows的用户名\.ssh中存在两个文件 在当前目录打开git bash,cat id_rsa.pub 在gitlab中的user setting中找到ssh keys 添加刚刚找到的密钥...
2020-04-05 18:11:57
341
原创 springcloud
@EnableEurekaServer:提供服务注册的功能,各个节点启动之后,会在Eureka Server中注册,这样Eureaka Server就有了所有节点的信息@EnableEurekaClient:让该服务注册到注册中心@EnableDiscoveryClient 、@EnableEurekaClient 的异同点:都可以让该服务注册到注册中心上去 @EnableEurek...
2019-12-22 23:34:38
114
原创 Nginx
安装wget http://nginx.org/download/nginx-1.17.4.tar.gz 安装准备:nginx依赖于pcre,要先安装pcre //一键安装上面四个依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel tar -zxvf nginx-1.17.4.tar.gz cd...
2019-12-10 19:22:20
372
原创 VMWare之克隆
选择你要克隆的那台机器,右键-》管理-》克隆(提示:处于开机或者是挂起状态的机器不能克隆)选择下一步选择下一步选择创建完整克隆,然后选择下一步修改机器的名称,选择合适的位置,点击完成就行...
2019-10-27 22:22:55
324
原创 Redis集群的搭建
在Redis3.0以前,提供了Sentinel工具来监控Master的状态,如果Master异常,则会做主从切换,将slave作为master,将master作为slave。其配置也是稍微的复杂,并且各方面表现一般。现在redis3.0已经支持集群的容错功能,并且非常简单。集群的搭建:至少三个master第一步:创建一个文件夹redis-cluster,然后在其下面分别创建6个文件夹:...
2019-10-11 23:28:48
118
原创 Redis之哨兵模式
有了主从复制的实现以后,我们如果想对主从服务器进行监控,那么在redis2.6以后提供了一个“哨兵”的机制,在2.6版本中的哨兵为1.0版本,并不稳定,会出现各种各样的问题。在2.8以后的哨兵功能才稳定下来。顾名思义,哨兵的含义就是监控Redis系统的运行状况。其主要功能有两点:1.监控主数据库和从数据库是否正常运行2.主数据出现故障时,可以自动将从数据库转换为主数据库,实现自动切换...
2019-10-07 22:44:12
254
原创 Redis之主从复制
主从复制Master可以拥有多个slave 多个slave可以连接同一个master外,还可以连接其他的slave 主从复制不会阻塞master在同步数据时 master可以继续处理client请求 提供系统的伸缩性主从复制的过程slave与master建立连接,发送sync同步命令 master会开启一个后台进程,将数据库快照保存到文件中,同时master主进程会开始收集新...
2019-10-07 15:47:57
127
原创 Redis高级命令
keys * (可以进行模糊匹配,例如:list*) 返回满足的所有keyexists 是否存在指定的keyexpire 设置某个key的过期时间,使用ttl 查看剩余时间persist 取消过期时间select 数据库的索引 数据库的索引是0到15 默认的就是索引为0的数据库move key 数据库的索引 移动key到其他数据库randomke...
2019-10-02 23:15:07
144
原创 redis基础
redis安装tar -zxvf redis-5.0.4.tar.gz cd redis-5.0.4 修改redis.conf中的daemonize yes make cd src/ make install redis-server redis.conf 启动redis redis-cli shutdown 关闭redisredis一共有五种基本数据类型:String、Ha...
2019-09-29 22:31:08
145
原创 Git命令
安装完成之后,配置用户名和邮箱git config --global user.name "你的git的用户名"git config --global user.email "你的git的邮箱"git config --list 查看git的配置git基本命令git init 初始化本地仓库git add 文件名 将文件上传到暂存区git commit -...
2019-09-25 05:13:29
108
原创 Java8新特性之Stream流
Stream是Java8中处理集合的关键抽象概念,它可以指定你希望对集合进行的操作,课执行非常复杂的查找、过滤和映射数据等操作。使用Stream API对集合数据进行操作,就类似于使用SQL执行的数据库查询。也可以使用Stream API来进行执行操作。简而言之,Stream API提供了一种高效且易于使用的处理数据的方式注意:Stream自己不会存储元素 Stream不会改变源对象。相...
2019-09-22 23:43:13
333
原创 Java8新特性之Lambda表达式
1-Lambda表达式Lambda是一个匿名函数,我们可以把Lambda表达式理解为一段可以传递的代码(将代码像数据一样进行传递)。可以写出更简洁、更灵活的代码。//原来的匿名内部类 @Test public void test1(){ Comparator<Integer> comparator = new Comparator<Int...
2019-09-21 23:59:00
96
原创 C#----笔画应用实例
form.csusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using S
2017-06-01 10:53:17
629
原创 校园导航 终结版
#include#include#include#define Max 20000#define NUM 100typedef struct{ int adj;//相邻接的景点之间的路程} ArcCell; //定义边的类型typedef struct jingdian{ int number;//景点编号 char *vi
2017-05-16 10:00:59
657
转载 数据结构模板
#include #include #include #include using namespace std;int sizer;typedef struct{ int data; int t; int fisrt;}Node;typedef struct{ string name; int a[101];}Po
2017-05-14 22:48:09
263
原创 数据结构
#include#include#include#define Max 20000#define NUM 100typedef struct{ int adj;//相邻接的景点之间的路程}ArcCell;//定义边的类型typedef struct jingdian{ int number;//景点编号 char *view;//景
2017-05-14 22:45:29
405
原创 C#中关于文件的
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2017-05-13 12:32:29
284
翻译 C#键盘事件应用
program.csusing System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;namespace WindowsFormsApplication3{ static class Program { /// ///
2017-04-27 11:27:28
511
原创 c#
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace Windo
2017-04-20 10:55:12
466
1
原创 C#-----扩展方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ static class Program //必须是静态类才可以添加扩展方法 { static void Main(
2017-04-13 11:17:25
263
转载 校园导航系统
#include "string.h"#include "stdio.h"#include "stdlib.h"#define Max 32767#define NUM 48typedef struct ArcCell{ int adj; /* 相邻接的景点之间的路程 */}ArcCell; /* 定义边的类型 */typedef struct Verte
2017-04-11 17:25:31
2289
转载 C#中out的使用和数组型参数
//数组型参数using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication4{ class Program { static void Main(string[] a
2017-04-06 11:27:32
1647
转载 显示接口的实现
/* 显示接口成员实现 */using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication3{ class Program { static void Main(string[] args)
2017-04-06 11:15:48
446
转载 委托多播
/* 委托可以调用多个方法,这种称为委托多播。一般时通过“+”或“-”运算符实现多播的增加或减少。 */using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ class Program {
2017-04-06 10:56:02
792
转载 数据结构课程设计————校园导航系统
#include#include #include #define Max 10000#define NUM 11typedef struct ArcCell{int adj;char *info;}ArcCell;typedef struct VertexType{int number;char *sight;}VertexType;typed
2017-04-04 17:15:31
19543
11
原创 c#————关于物体是否在水中下沉
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ class Program { static void Main(string[] args) {
2017-03-30 11:28:17
429
原创 C#练习——求两点之间的距离、矩形的周长和面积
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) {
2017-03-30 10:57:10
2014
原创 c#练习——统计字符串中的数子字符的个数以及所有的数字字符
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace shiyan4_1{ class Program { static void Main(string[] args) {
2017-03-23 11:04:35
2762
转载 链表
最近在复习数据结构,想把数据结构里面涉及的都自己实现一下,完全是用C语言实现的。自己编写的不是很好,大家可以参考,有错误希望帮忙指正,现在正处于编写阶段,一共将要实现19个功能。到目前我只写了一半,先传上来,大家有兴趣的可以帮忙指正,谢谢在vs2010上面编译运行无错误。每天都会把我写的新代码添加到这个里面。直到此链表完成。?#inclu
2016-06-25 16:36:28
499
原创 c++学习心得
C++是在C语言的基础上开发的一种面向对象编程语言,应用广泛;C++支持多种编程范式 --面向对象编程、泛型编程和过程化编程。 刚开始学习C++的时候我一听到他是一种面向对象的编程语言的时候,我心里就有点害怕,因为我听学长学姐们说过面向对象的编程语言是一种比c语言这种面向过程的编程语言更加难得一门语言。但是当我开始学习c++的时候,我感觉到他并不是那么的难学,前几章的就是c语言的回顾,可能是由
2016-06-23 09:27:55
901
原创 文件填空2
问题及代码:/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:李一波 * 完成日期:2016年6月22日 * 版本号:codeblocks * * 问题描述:下面程序的功能是将文本文件abc.txt中的所有行加上行号后写到newabc.txt文件中,请填空将程序补充完整。 * 输入
2016-06-22 16:38:23
624
转载 关于文件
简介本教程将以C++最基本的文件I/O(输出/输出)开始。此后,我将从更深入的方面,为你展示一些技巧,并分析给出一些有用的函数。你需要对C++有一个较好的理解,否则这个教程于你而言将是陌生而毫无用处。 你的第一个程序 首先我将给出一段代码,接着再逐行进行解释。我们的第一个程序将建立一个文件,并写入一些字符: #include void main() //程
2016-06-22 16:30:23
405
原创 问题填空1
问题及代码:/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:李一波 * 完成日期:2016年6月22日 * 版本号:codeblocks * * 问题描述: * 输入描述: * 程序输出: */#include #include #include // (1)us
2016-06-22 16:26:14
634
原创 第16周项目——文件阅读9
问题及代码:/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:李一波 * 完成日期:2016年6月21日 * 版本号:codeblocks * * 问题描述: * 输入描述: * 程序输出: */#include #include using namespace std;
2016-06-21 13:22:59
319
原创 第16周项目——文件阅读8
问题及代码:/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:李一波 * 完成日期:2016年6月21日 * 版本号:codeblocks * * 问题描述: * 输入描述: * 程序输出: */#include using namespace std;int main (
2016-06-21 13:16:54
565
原创 第16项目——文件阅读7
问题及代码:/*copyright(c)2016.烟台大学计算机学院 * All rights reserved, * 文件名称:text.Cpp * 作者:李一波 * 完成日期:2016年6月21日 * 版本号:codeblocks * * 问题描述: * 输入描述: * 程序输出: */#include#include using namespace std;c
2016-06-21 13:07:06
381
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人