上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页

2020年11月9日

ThreadLocal +拦截器 处理参数

摘要: 1、构建ThreadContext package com.ne.ice.boot.common; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.HashMap; import java.util. 阅读全文

posted @ 2020-11-09 11:06 滚动的蛋 阅读(267) 评论(0) 推荐(0) 编辑

Redis 分布式锁 解决集群环境下多次定时任务执行

摘要: 集群环境下,定时任务会并发执行,我能想到的解决方案又两个 1、使用分布式锁,拿到锁的执行,没拿到的直接结束 2、使用xxl-job 实现定时任务 阅读全文

posted @ 2020-11-09 10:59 滚动的蛋 阅读(277) 评论(0) 推荐(0) 编辑

2020年11月5日

10 Thought-Provoking Movies That Will Make You Think Differently

摘要: These ten thought-provoking movies ask the big questions about who we are, what life is, and how we should live and love. In a quest to understand the 阅读全文

posted @ 2020-11-05 17:52 滚动的蛋 阅读(447) 评论(0) 推荐(0) 编辑

枚举的处理,MybaitsPlus+JackSon

摘要: 通过注解实现枚举的自动转化: import com.baomidou.mybatisplus.annotation.EnumValue; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson. 阅读全文

posted @ 2020-11-05 17:42 滚动的蛋 阅读(298) 评论(0) 推荐(0) 编辑

SpringBoot JackSon全局配置

摘要: package com.nxe.business.bailian.bi.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonInclud 阅读全文

posted @ 2020-11-05 17:35 滚动的蛋 阅读(2683) 评论(0) 推荐(1) 编辑

2020年10月28日

SQL查询数据库中所有表名

摘要: SELECT table_name,table_type,table_schema FROM information_schema.TABLES WHERE table_schema = 'security_domain' AND table_type = 'BASE TABLE'; NOTE: T 阅读全文

posted @ 2020-10-28 15:11 滚动的蛋 阅读(1453) 评论(0) 推荐(0) 编辑

2020年10月21日

Feign url配置/注解

摘要: /** * @author : Yungui.zheng * @version : 1.0 * @Describe : _Client层 * @since : 2020-10-05 20:00:21 */ @FeignClient(name = DemoConstant.BU5_CMS_SERVIC 阅读全文

posted @ 2020-10-21 10:05 滚动的蛋 阅读(3957) 评论(0) 推荐(0) 编辑

2020年10月9日

Java 通过url响应图片

摘要: @ApiOperation(value = "海报图片", httpMethod = "GET", response = Poster.class, notes = "query") @RequestMapping(path = "/posterImage", method = RequestMet 阅读全文

posted @ 2020-10-09 14:51 滚动的蛋 阅读(1906) 评论(0) 推荐(0) 编辑

2020年9月16日

Java 8 新特性

摘要: @Override public List<String> getUserRoles(String username) { //找到以ROLE_开头的,并且映射为字符串数组 return userDetailsService.loadUserByUsername(username).getAutho 阅读全文

posted @ 2020-09-16 15:23 滚动的蛋 阅读(172) 评论(0) 推荐(0) 编辑

编码习惯--日志

摘要: 1、详细的日志打印可以帮助更好的排查问题 @ServiceActivator(inputChannel = "fileChannel") public void processFile(Message<File> message) throws IOException { securityUtil. 阅读全文

posted @ 2020-09-16 11:02 滚动的蛋 阅读(238) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页

导航