10 2021 档案

摘要:spring: datasource: username: root password: root url: jdbc:mysql://192.168.77.130:3306/gulimall_oms?useUnicode=true&characterEncoding=UTF-8&serverTim 阅读全文
posted @ 2021-10-29 18:21 一只大冬瓜 阅读(53) 评论(0) 推荐(0)
摘要:JDK安装 https://blog.csdn.net/houwanle/article/details/81773832 阅读全文
posted @ 2021-10-21 14:46 一只大冬瓜 阅读(15) 评论(0) 推荐(0)
摘要:redis主从分片集群搭建 https://blog.csdn.net/qq_29860591/article/details/106977965 阅读全文
posted @ 2021-10-21 12:21 一只大冬瓜 阅读(27) 评论(0) 推荐(0)
摘要://主数据源配置 [mysqld]## 设置server_id,同一局域网中需要唯一server_id=101 ## 指定不需要同步的数据库名称binlog-ignore-db=mysql ## 开启二进制日志功能log-bin=mall-mysql-bin ## 设置二进制日志使用内存大小(事务) 阅读全文
posted @ 2021-10-20 22:21 一只大冬瓜 阅读(96) 评论(0) 推荐(0)
摘要:* 打包导出镜像 docker save -o xx.tar <imageName:tag> *利用文件传输工具导入到目标主机 *加载镜像 docker load -i xx.tar 阅读全文
posted @ 2021-10-19 09:12 一只大冬瓜 阅读(62) 评论(0) 推荐(0)
摘要:k8s集群搭建相关操作(2021) 工具 Vagrant + VBox + Xshell 宿主机:Win10 虚拟机: Centos7 * 使用vagrantFile创建虚拟机 1.创建一个文件夹k8s,在当前目录打开命令行窗口,运行 vagrant init 2.打开当前目录生成的Vagrantf 阅读全文
posted @ 2021-10-14 21:24 一只大冬瓜 阅读(437) 评论(0) 推荐(0)
摘要:问题如下图 正确应该在这里输入密码,但是他确提示需要输入公钥,而且一顿操作之后也连不上,提示未在远程机注册, 经过百度查到了虚拟机的sshd服务配置文件 执行以下命令使用vim打开 vi /etc/ssh/sshd_config 只需修改其中两个参数即可 : 1.将公钥认证改为 no 2.将密码认证 阅读全文
posted @ 2021-10-14 19:44 一只大冬瓜 阅读(408) 评论(0) 推荐(0)
摘要:1、创建一个专门的文件夹存放安装包,并进入: mkdir yumsdk cd yumsdk 2.从http://mirrors.163.com/centos/7/os/x86_64/Packages下载相应的包,执行以下命令,将所有依赖下载,直接复制粘贴 wget http://mirrors.16 阅读全文
posted @ 2021-10-14 16:56 一只大冬瓜 阅读(481) 评论(0) 推荐(0)
摘要:@Configurationpublic class MyRabbitMQConfig { /* 容器中的Queue、Exchange、Binding 会自动创建(在RabbitMQ)不存在的情况下 */ /** * 死信队列 * * @return */@Bean public Queue ord 阅读全文
posted @ 2021-10-13 23:11 一只大冬瓜 阅读(128) 评论(0) 推荐(0)
摘要:@Configurationpublic class MyRabbitConfig { private RabbitTemplate rabbitTemplate; @Autowired AmqpAdmin amqpAdmin; @Primary @Bean public RabbitTemplat 阅读全文
posted @ 2021-10-13 23:09 一只大冬瓜 阅读(195) 评论(0) 推荐(0)
摘要:@RestController@RequestMapping("/third/part")public class Oss {/** spring.application.name=gulimal-third-partspring.cloud.nacos.config.server-addr=127 阅读全文
posted @ 2021-10-13 23:02 一只大冬瓜 阅读(186) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 阅读全文
posted @ 2021-10-13 22:50 一只大冬瓜 阅读(58) 评论(0) 推荐(0)
摘要:spring.cloud.nacos.config.server-addr=127.0.0.1:8848spring.cloud.nacos.config.file-extension=ymlspring.cloud.nacos.config.namespace=972eaeeb-cf12-47ad 阅读全文
posted @ 2021-10-13 22:49 一只大冬瓜 阅读(144) 评论(0) 推荐(0)
摘要:server: port: 80spring: cloud: gateway: routes: - id: product_rute uri: lb://gulimal-product predicates: - Path=/api/product/** filters: - RewritePath 阅读全文
posted @ 2021-10-13 22:48 一只大冬瓜 阅读(179) 评论(0) 推荐(0)
摘要:@Getter@AllArgsConstructor@ToStringpublic enum ErrorEnum { SUCCESS(0,"成功"), ERROR(-1,"服务器内部错误"), //-1xx 服务器错误 BAD_SQL_GRAMMAR_ERROR(-101,"sql语法错误"), O 阅读全文
posted @ 2021-10-13 22:47 一只大冬瓜 阅读(239) 评论(0) 推荐(0)
摘要:public class WebException extends RuntimeException{ private Integer code; private String message; public WebException() { } public WebException(ErrorE 阅读全文
posted @ 2021-10-13 22:46 一只大冬瓜 阅读(19) 评论(0) 推荐(0)
摘要:public class R1 extends HashMap<String, Object> { private static final long serialVersionUID = 1L; public R1() { put("code", 0); put("msg", "success") 阅读全文
posted @ 2021-10-13 22:45 一只大冬瓜 阅读(46) 评论(0) 推荐(0)
摘要:public class HttpUtils { /** * get * * @param host * @param path * @param method * @param headers * @param querys * @return * @throws Exception */ pub 阅读全文
posted @ 2021-10-13 22:39 一只大冬瓜 阅读(286) 评论(0) 推荐(0)
摘要:/** * @Description: 断言 * @Author: ajin */public class IAssert { public static void NotNull(Object o,ErrorEnum errorEnum){ if (o == null || "".equals(o 阅读全文
posted @ 2021-10-13 22:33 一只大冬瓜 阅读(30) 评论(0) 推荐(0)
摘要:@EnableCaching@Configurationpublic class RedisConfig extends CachingConfigurerSupport { /** * 自定义生成key的规则 * 缓存对象集合中,缓存是以 key-value 形式保存的。 * 当不指定缓存的key 阅读全文
posted @ 2021-10-13 22:21 一只大冬瓜 阅读(314) 评论(0) 推荐(0)
摘要:@Data@ConfigurationProperties(prefix = "myconfig.thread")public class MyThreadProperties { private final Integer DEFAULT_CORE_SIZE = 20; private final 阅读全文
posted @ 2021-10-13 22:03 一只大冬瓜 阅读(168) 评论(0) 推荐(0)
摘要:@Configuration@EnableConfigurationProperties(MyThreadProperties.class)public class MyThreadAutoConfiguration { @Bean public ThreadPoolExecutor threadP 阅读全文
posted @ 2021-10-13 22:03 一只大冬瓜 阅读(49) 评论(0) 推荐(0)
摘要:@Configurationpublic class SpringSessionConfig { @Bean public CookieSerializer cookieSerializer() { DefaultCookieSerializer defaultCookieSerializer = 阅读全文
posted @ 2021-10-13 21:49 一只大冬瓜 阅读(143) 评论(0) 推荐(0)
摘要://// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//package com.example.mybatisplugin.plugin;import j 阅读全文
posted @ 2021-10-13 21:42 一只大冬瓜 阅读(114) 评论(0) 推荐(0)