![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
あ学あ
这个作者很懒,什么都没留下…
展开
-
Mybatis-Plus代码自动生成(Gennerator)新
mybatis-plus最新自动代码生成原创 2022-12-26 18:01:32 · 292 阅读 · 0 评论 -
姓名、手机号、证件号掩码
public static void main(String[] args) { String fullName = "王五一一"; String name = StringUtils.left(fullName, 1); String s = StringUtils.rightPad(name, StringUtils.length(fullName), "*"); System.out.println(s); String原创 2021-05-19 16:23:25 · 1176 阅读 · 1 评论 -
关于SpringCloud Feign 上传多文件解决办法
单个的 MultipartFile file 我们feign是可以正常接收到,但是如果传MultipartFile [] file的时候,这时执行上传多个文件的时候就会报:Caused by: feign.codec.EncodeException: Could not write request: no suitable HttpMessageConverter found for request type [[Lorg.springframework.web.multipart.MultipartFi原创 2020-06-03 13:35:06 · 1437 阅读 · 1 评论 -
创建线程池+springboot异步创建例子(注解)
首先创建线程池,下面代码`@EnableAsync(proxyTargetClass = true)@Configurationpublic class AsycTaskExecutorConfig {@Value("task.queue.corePoolSize")privateintcorePoolSize;//线程池维护线程的最少数量@Value("{task.queue.c...原创 2020-05-08 10:59:44 · 218 阅读 · 0 评论 -
一些关于java的知识点
定时注解: 网址(https://blog.csdn.net/wqh8522/article/details/79224290)在类上面加上 @EnableScheduling 启动定时器在方法上面加上 @Scheduled(cron = “0/5 * * * * *”) 来控是时间关于事务:事务就是为了保证用户的每一个操作都是可靠的,事务中的每一步操作都必须成功执行,只要有发生异...原创 2018-10-12 14:34:42 · 142 阅读 · 0 评论