排序
Docker环境下三种方式安装redis并配置redis-cli远程连接
这里记录使用docker和docker-compose两种方式安装redis的过程: 一、准备 1.安装docker-ce 安装过程参考: CentOS安装docker ce的三种方式; 2.安装docker-compse 安装过程参考: CENTOS安装Doc...
Java将String转为LocalDate的方法
实现方法: DateTimeFormatter formatter = DateTimeFormatter.ofPattern('yyyy-MM-dd'); formatter = formatter.withLocale(Locale.CHINA); LocalDate localDate = LocalDate.parse(dutyDate, ...
Linux将shell脚本配置成系统服务并设置开机自启
1. 环境说明 CentOS Linux release 8.2.2004 (Core) 2. 配置方式 1)创建脚本 在/usr/bin目录下创建脚本,比如我的脚本名为/usr/bin/ruoyi-gen.sh,内容如下: #!/bin/bash java -jar /root/xf-...
pom.xml文件spring-boot-maven-plugin报错
IntelLij Idea maven配置文件pom.xml报错,解决办法是加入版本号。 <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-...
Junit 4测试Service方法的几种方式
Junit单元测试,测试Service方法,注入Service的方式有以下两种: Maven依赖: <properties> <!-- 源文件编码格式 --> <project.build.sourceEncoding>UTF-8</project.bui...
使用VirtualBox安装CentOS7(详细图文步骤)
本文详细记录了,在Windows平台下,使用VirtualBox安装CentOS7的整个过程。 环境 Windows 10; VirtualBox 5.2.20; CentOS-7-x86_64-DVD-1804; ##安装过程 1.选择系统类型 2.分配内存大小 3....
如何安全的将Java String字符串转换为BigDecimal
实现从Java String字符串到BigDecimal的安装转换: import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.ParsePosition; import j...
Digitalocean镜像备份并更换机房位置(更换IP)
Digitalocean支持数据的镜像备份,可以实现快速将当前的环境复制到另一台主机。具体步骤如下: 1.选择你想要进行备份的主机 2.点击左侧菜单Snapshot 3.然后点击Take Snapshot,备份可能需要几分...
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured解决办法
新建springboot项目启动出错:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 出现错误的原因是我在官网[https://start...
Windows平台安装maven及idea配置
项目中使用maven统一管理jar包,就需要对maven进行安装、配置,idea本身自带maven插件,但是自带的版本不符合你的要求,就需要自己安装。 我的环境如下: 操作系统:windows 10; maven版本:ap...





