05 2022 档案
摘要:如果在主从配置Redis有密码,在哨兵配置文件中也要添加Redis密码 port 26380 daemonize no pidfile "/var/run/redis-sentinel-26380.pid" logfile "" dir "/tmp" #sentinel myid f8ea0c914
阅读全文
摘要:需要外部系统连接Linux上的Redis,我们需要更改redis.conf中的一些配置,但是首先,我们要先关闭防火墙 (1)设置开机启用防火墙:systemctl enable firewalld.service (2)设置开机禁用防火墙:systemctl disable firewalld.se
阅读全文
摘要:logback-spring.xml <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" debug="false"> <springProperty scop="context" name="spring.applic
阅读全文
摘要:CentOS7安装Nginx1.下载软件包 wget http://nginx.org/download/nginx-1.61.1.tar.gz 2.安装依赖 yum -y install gcc pcre-devel zlib-devel openssl openssl-devel 3.安装Ngi
阅读全文
摘要:protocol,ip,port只要有一个不同,就称为跨域请求 从前端解决: 在前端通过JSONP的配置,设置前端允许跨域。 从后端解决: 在后端设置响应数据允许跨域 采用@CrossOrigin注解完成
阅读全文
摘要:导入插件依赖 <build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.5</ver
阅读全文
摘要:4.1 创建数据表 4.2 创建实体类 4.3 创建DAO接口 tkMapper已经完成了对单表的通用操作的封装,封装在Mapper接口和MySqlMapper接口;因此如果我们要完成对单表的操作,只需自定义DAO接口继承Mapper接口和MySqlMapper接口 public interface
阅读全文