摘要:
@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号