摘要:
1.java获取两个相同字符中间的字符串 //如果没有“*”会报错 String str = "*运输服务*运费"; String substring = str.substring(str.indexOf("*")+1, str.indexOf("*",2)); System.out.printl 阅读全文
摘要:
将new Date()=Tue Feb 22 17:31:24 CST 2022 转换为 2022-02-22 05:29:23将Tue Feb 22 17:31:24 CST 2022 转换为 2022-02-22 05:29:23 new SimpleDateFormat("yyyy-MM-dd 阅读全文
摘要:
1、前端代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://w 阅读全文
摘要:
1、前端代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://w 阅读全文
摘要:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> 一个项目中我们会写 阅读全文
摘要:
1.在File→Settings→Plugins 搜索mybatis plugin 阅读全文
摘要:
1. 引入分页插件依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.3</version> </d 阅读全文
摘要:
1.<!-- 打包war [1] --><packaging>war</packaging> 2. <!--web--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter- 阅读全文
摘要:
下载地址:http://www.keepalived.org/ 2.安装keepalived 解压 tar -zxvf keepalived-1.4.0.tar.gz 安装gcc命令 yum install -y gcc openssl-devel popt-devel 安装好gcc后 cd kee 阅读全文
摘要:
1、什么是 nginx 高可用 (1)需要两台 nginx 服务器 (2)需要 keepalived (3)需要虚拟 ip 2、配置高可用的准备工作(1)需要两台服务器 192.168.17.129 和 192.168.17.131 (2)在两台服务器安装 nginx (3)在两台服务器安装 kee 阅读全文