
开发bug
开发bug
杭州小哥哥
记录学习笔记
展开
-
EasyExcel ExcelGenerateException: The index of ‘xx‘ and ‘xx‘ must be inconsistent
EasyExcel 导出Excel,报错提示如下原因是两个字段的index索引值都是没按顺序来,导致异常,索引index从0开始递增原创 2020-11-27 10:45:11 · 10273 阅读 · 0 评论 -
java中split以“.“ 、“\“、“|”分隔
今天项目里遇到以"." 、"\"、“|”分割字符串,直接用"." 、"\"、“|”无法分割,因为"." 、"\"、“|”是特殊字符,需要转义,"\\." 、"\\\"、“\\|”用“\\|”分割,修改后可以了原创 2020-11-26 20:58:49 · 453 阅读 · 0 评论 -
Spring Boot单元测试报错java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]
一:运行test类方法时候报错报错java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available. at org.springframework.test.context.BootstrapUtils.resolve原创 2020-11-15 16:56:34 · 3666 阅读 · 0 评论