摘要:
1、先创建一主二从,端口号分别为master:6379,slave:6380,slave:6381 2、接着创建三个哨兵26379、26380、26381,首先在data/sentinel-01/conf目录下载sentinel.conf配置文件 wget http://download.redis 阅读全文
摘要:
https://blog.csdn.net/qq_38270106/article/details/84026299 创建端口号为6380的redis服务器: 复制6379的挂载目录文件作为6380的挂载文件 cp -r redis6.0.5 redis6.0.5_slave 删除redis6.0. 阅读全文
摘要:
初始文件: protected-mode no port 6379 tcp-backlog 511 timeout 0 tcp-keepalive 300 daemonize no supervised no pidfile /var/run/redis_6379.pid loglevel noti 阅读全文
摘要:
https://blog.csdn.net/qq_43532386/article/details/105135848 运行3个nacos,每次运行时关联mysql数据库, MYSQL_MASTER_SERVICE_HOST地址为docker容器内的地址:根据容器开启的顺序决定改地址(从2开始)。 阅读全文
摘要:
新建module 打开nacos 接着调用9001的controller方法: @RestController public class PaymentController { @Value("${server.port}") private String serverPort; @GetM 阅读全文
摘要:
https://blog.csdn.net/yaorongke/article/details/82799609?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&d 阅读全文
摘要:
服务提供者8001,PaymentController @GetMapping(value = "/payment/get/{id}") public CommonResult getPaymentById(@PathVariable("id") Long id){ Payment payment 阅读全文
摘要:
创建模块并打包如下: 在其他模块调用时: <dependency> <groupId>org.example</groupId> <artifactId>cloud-api-commons</artifactId> <version>${project.version}</version> </de 阅读全文
摘要:
server: port: 8006 spring: application: name: consul-provider-payment cloud: consul: host: 192.168.152.131 port: 8500 discovery: service-name: ${sprin 阅读全文
摘要:
错误的写法: <resultMap id="BaseResultMap" type="com.dong.springcloud.entities.Payment"> <id column="id" property="id" ></id> <id column="serial" property=" 阅读全文
摘要:
当使用了泛型之后,要讲Java编译环境设为8,要不然会出现Error:(34, 9) java: 无法将类CommonResult<T>中的构造器 CommonResult应用到给定类型; 阅读全文
摘要:
https://blog.csdn.net/qq_26517983/article/details/100145348?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.comp 阅读全文