往期文章
共 168 篇 · 按时间倒序
- 2020
-
酷玩微信测试号
由于没有可用的公众号 利用微信测试平台注册了微信测试的公众号 除了没有支付接口,其他的都能用 作为开发也足够了 只能有100个粉丝 关注之后打开xjj.dafeiyu.cn 体验
10644 阅读 -
Git常用操作命令 (持续更新)
本地代码提交仓库 新代码提交 git add . git commit -am 'first commit' git remote add origin [url] git push origin 修改仓库地址提交 git remote add...
11129 阅读 -
linux安装docker
1、用yum源安装 查看是否安装命令 yum list installed | grep docker 安装docker命令 yum -y install docker -y表示不询问安装 启动docker命令 systemctl start...
12232 阅读 -
工作常用命令参考
记录日常常用的linux脚本命令 docker下mysql备份脚本 #!/bin/bash backupdir=/home/data/mysql/mysql_backup time=` date +%Y_%m_%d_%H_%M_%S ` db_n...
11510 阅读 -
SpringBoot为什么没有web.xml
几乎所有人都是从 servlet,jsp,filter 开始编写自己的第一个 hello world 工程。 那时,还得在 web.xml 文件中编写繁琐的 servlet 和 filter 的配置。 随着 spring 的普及,配置逐渐演变成了...
12272 阅读 -
linux常用命令 (长期更新)
一、文件操作 删除文件 rm text.txt rm -r /home/text/ 删除文件夹 分割文件 -b指定分割大小 split -b 100M httpd.log split.log` 合并文件 cat file.tar....
10925 阅读 -
linux安装Nginx
本文以 centos为例 开始前,请确认gcc g++开发类库是否装好 安装make: yum -y install gcc automake autoconf libtool make 安装g++: yum install gcc gcc...
11191 阅读 -
docker安装Nginx挂载外部配置文件
一、拉取nginx镜像 docker pull nginx 二、在宿主机中创建挂载目录 mkdir -p /data/nginx/{conf,conf.d,html,log} 三、将配置文件放到挂载目录 user www-data; work...
11129 阅读 -
docker安装redis挂载外部配置文件
下载redis镜像 docker pull redis 配置data、conf mkdir -p ./docker/redis/data mkdir -p ./docker/redis/conf 增加redis.conf 我是本身cento...
11568 阅读 -
创建并运行docker镜像
1.首先安装并运行docker 2.运行whalesay镜像 docker run docker/whalesay cowsay dafeiyu 3.编写Dockerfile文件 (1) cd Desktop 转到桌面 mkdir testdoc...
9838 阅读 -
Linux防火墙firewall、iptables
一、iptables防火墙 1、基本操作 查看防火墙状态 service iptables status 查看iptables规则 iptables -nvL 停止防火墙 service iptables stop 启动防火墙service ip...
11117 阅读 -
深入理解 HashMap
什么是HashMap HashMap是用哈希表(直接一点可以说数组加单链表)+红黑树实现的map类 HashMap是一个用于存储Key-Value键值对的集合 HashMap数据结构 HashMap存储的是key-value的键值对,允许key...
10779 阅读 -
Springboot 集成 Swagger
1添加pom <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId&g...
10409 阅读 -
Springboot项目的云服务器部署
1配置好properties 2 打jar包 3 上传运行 nohup java -jar xxx.jar & nohup 常驻 不会因为你关闭命令界面而停止服务 &表示执行命令后要生成日志文件nohup.out 也可以指定日志文...
10684 阅读 -
SpringBoot 参数校验
1.加入pom支持 <!--springboot 参数校验--> <dependency> <groupId>org.hibernate</groupId> <artifactId>h...
8987 阅读 -
SpringBoot 事物管理
不使用事物 定义好的cat类和dao 在junit测试中代码 cat 的构造器 public Cat(Integer id, Integer catAge, String catName) { this.id = id; this.catAge ...
10701 阅读 -
SpringBoot 集成 redis
加入依赖 <!--junit--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>sprin...
8282 阅读 -
SpringBoot 使用 logback 日志
logback是springboot 默认使用的日志 引入jar <!--logback 日志--> <dependency> <groupId>org.springframework.boot</...
12225 阅读 -
Springboot 使用模板引擎
spring boot使用thymeleaf 在pom.xml中引入thymeleaf 如何关闭thymeleaf缓存 编写访问模板文件controller 编写模板文件.html pom文件加入thymeleaf <dependenc...
10806 阅读 -
Springboot 属性配置和使用
Spring Boot 支持多种外部配置方式 这些方式优先级如下: 命令行参数 来自java:comp/env的JNDI属性 Java系统属性(System.getProperties()) 操作系统环境变量 RandomValueProper...
10882 阅读