摘要:
@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
一只大冬瓜
阅读(194)
评论(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
一只大冬瓜
阅读(185)
评论(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
一只大冬瓜
阅读(57)
评论(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
一只大冬瓜
阅读(142)
评论(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
一只大冬瓜
阅读(178)
评论(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
一只大冬瓜
阅读(238)
评论(0)
推荐(0)
摘要:
public class WebException extends RuntimeException{ private Integer code; private String message; public WebException() { } public WebException(ErrorE 阅读全文
posted @ 2021-10-13 22:46
一只大冬瓜
阅读(18)
评论(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
一只大冬瓜
阅读(44)
评论(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
一只大冬瓜
阅读(285)
评论(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
一只大冬瓜
阅读(29)
评论(0)
推荐(0)
摘要:
@EnableCaching@Configurationpublic class RedisConfig extends CachingConfigurerSupport { /** * 自定义生成key的规则 * 缓存对象集合中,缓存是以 key-value 形式保存的。 * 当不指定缓存的key 阅读全文
posted @ 2021-10-13 22:21
一只大冬瓜
阅读(314)
评论(0)
推荐(0)
摘要:
@Configuration@EnableConfigurationProperties(MyThreadProperties.class)public class MyThreadAutoConfiguration { @Bean public ThreadPoolExecutor threadP 阅读全文
posted @ 2021-10-13 22:03
一只大冬瓜
阅读(49)
评论(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)
摘要:
@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
一只大冬瓜
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号