2020年12月16日
摘要: 实现原理:修改@ApiModelProperty的属性:value、dataType、allowableValues @Component public class SwaggerDisplayConfig implements ModelPropertyBuilderPlugin { @Overr 阅读全文
posted @ 2020-12-16 17:01 Joequa 阅读(937) 评论(0) 推荐(0) 编辑
  2020年11月11日
摘要: @RestController public class EmployeeController { @PostMapping("checkEmployee") public String checkEmployee(@RequestBody Employee employee) { return e 阅读全文
posted @ 2020-11-11 09:28 Joequa 阅读(1917) 评论(0) 推荐(1) 编辑
  2020年8月12日
摘要: import java.time.Duration; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class DateTimeToStringUtil { private stat 阅读全文
posted @ 2020-08-12 14:43 Joequa 阅读(276) 评论(0) 推荐(0) 编辑
  2020年7月1日
摘要: 1、域名主体必须与服务器主体一致 2、网站名称必须与企业名称有关联 阅读全文
posted @ 2020-07-01 11:35 Joequa 阅读(176) 评论(0) 推荐(0) 编辑
  2020年6月12日
摘要: @MapperScan()只能配置成mapper接口所在的包,不能让他扫描到其他接口,否则会将其注册成bean 阅读全文
posted @ 2020-06-12 15:39 Joequa 阅读(896) 评论(0) 推荐(0) 编辑
  2020年6月6日
摘要: df -h 查看挂载使用情况 du -h --max-depth=1 查看当前目录下各文件夹/文件的占用大小 rm -rf * 删除当前目录下的所有内容 若文件夹以被进程占用,需要关闭相应进程才可释放磁盘空间 阅读全文
posted @ 2020-06-06 01:03 Joequa 阅读(140) 评论(0) 推荐(0) 编辑
  2020年5月25日
摘要: 临时方案:SET SESSION group_concat_max_len = 102400; (值按需定) 永久方案:SET SESSION group_concat_max_len=102400; (值按需定) 或 mysql 配置文件中配置:group_concat_max_len = 102 阅读全文
posted @ 2020-05-25 10:20 Joequa 阅读(554) 评论(0) 推荐(0) 编辑
  2020年4月29日
摘要: @Sevice public class Test { public void a(){ b(); } @Transactional public void b(){ System.out.print("b"); } } 此时事务时不生效的,因为@Transactional注解事务是通过代理来控制的 阅读全文
posted @ 2020-04-29 20:20 Joequa 阅读(2028) 评论(0) 推荐(0) 编辑
  2020年4月13日
摘要: Hystrix 熔断器默认超时时间是 1 秒钟,我们需要在配置中修改它的超时时间配置,同时也要设置 ribbon 的超时时间。 解决方法:application中配置以下 hystrix: command: default: execution: isolation: thread: timeout 阅读全文
posted @ 2020-04-13 11:40 Joequa 阅读(4702) 评论(0) 推荐(0) 编辑
  2019年11月5日
摘要: 在引入mybatis-plus之前,是存在mybatis的包和pagehelper包的,把这两个注释掉就可以了。 分页就使用mybatis-plus自带的IPage。 阅读全文
posted @ 2019-11-05 21:28 Joequa 阅读(9289) 评论(0) 推荐(0) 编辑