- 博客(7)
- 收藏
- 关注
原创 SqlSessionFactory的ConfigLocation配置路径索引不到文件
今天在根据硬编码路径找扫描对应文件时候出现Caused by: java.io.FileNotFoundException: class path resource [classpath*:mapper/*Mapper.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:199) ~[sp
2022-04-06 13:32:19
1389
原创 tair锁
https://developer.aliyun.com/article/58928?spm=5176.21213303.J_6704733920.7.381353c945wHfm&scm=20140722.S_community%40%40%E6%96%87%E7%AB%A0%40%4058928._.ID_community%40%40%E6%96%87%E7%AB%A0%40%4058928-RL_tair%E5%88%86%E5%B8%83%E5%BC%8F%E9%94%81-LOC_mai
2022-04-06 10:26:57
103
原创 lambda表达式基于线程池的性能处理方案
import com.google.common.collect.Lists;import lombok.extern.slf4j.Slf4j;import java.util.ArrayList;import java.util.List;import java.util.concurrent.Callable;import java.util.concurrent.ExecutionException;import java.util.concurrent.Executors;imp.
2021-10-29 15:47:54
164
1
原创 运算为字符串的表达式
下面展示一些 内联代码片。import javax.script.ScriptEngine;import javax.script.ScriptEngineManager;/** * Created by zhaolei on 2021/9/3 下午3:57 */public class demo { private final static ScriptEngineManager SCRIPT_ENGINE_MANAGER = new ScriptEngineManager();
2021-09-03 16:10:37
90
原创 easyExcel文件读写问题记录
easyExcel文件读写问题记录使用EasyExcel写文件流时,在Windows下和mac环境没有任何问题,但是到了服务器Linux环境下报空指针异常。java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.ja
2021-07-02 19:46:04
370
原创 thread类Future理解
public class test { //使用到了代理对象 多线程的等待唤醒 但是实现了异步调用 public static void main(String[] args) { Client client = new Client(); //这里会立即返回,因为得到的是FutureData而不是RealData Data data = client.request("name"); System.out.println
2021-04-13 17:01:15
607
原创 String类型的trim方法解析
public String trim() { int len = value.length; int st = 0; char[] val = value; /* avoid getfield opcode */ while ((st < len) && (val[st] <= ' ')) { st++; } while ((st < len) &
2021-04-13 10:15:45
1945
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人