java
萍的微博go
这个作者很懒,什么都没留下…
展开
-
Error:(3, 32) java: 程序包org.springframework.boot不存在
java: 程序包org.springframework.boot不存在idea安装2020.1.1后踩的坑简单配置一下就可以用idea绿色启动按钮了,英语不好,附上了个中文版的,英文版的同学,对照设置的位置即可找到设置.转载 2021-12-28 14:11:15 · 136 阅读 · 0 评论 -
@ConfigurationProperties(prefix = “person“)获取数据失败,无法获取yaml文件的值
解决方案:在person类中添加@Data注解@Data@Component@ConfigurationProperties(prefix = "person")public class Person { private String lastName; private Integer age; private List<Object> lists;}原创 2021-11-23 14:09:36 · 1433 阅读 · 0 评论 -
Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check you
java中使用@controller+return "index"进行界面跳转的时候报错:Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generati转载 2021-11-05 14:34:33 · 916 阅读 · 0 评论 -
EasyExcel导出动态合并单元格
CellRangeAddress(起始行,终止行,起始列,终止列)public class LoopMergeStrategyQuestion extends AbstractRowWriteHandler { private List<ExcelCoordinate> Coordinates; public LoopMergeStrategyQuestion(List<ExcelCoordinate> Coordinates) { ...原创 2021-10-29 18:15:55 · 1353 阅读 · 0 评论 -
获取map中的相关数据
Map<String,List<Map<String,Object>>> DATA=...;var info=DATA.values().stream().toArray()[0];var Name=((HashMap) ((ArrayList) info).get(0)).get("name");int clonum=((ArrayList)info).size();原创 2021-09-24 19:15:22 · 269 阅读 · 0 评论 -
groupingby排序
data.stream().collect(Collectors.groupingBy(item->item.get("sort"), LinkedHashMap::new, Collectors.toList()));转载 2021-09-24 19:09:10 · 1568 阅读 · 0 评论 -
将float数据转换成int类型
(int)((Float) i).byteValue()原创 2021-09-24 19:07:01 · 1490 阅读 · 0 评论 -
easyexcel导出中自定义合并单元格
//定义列实体@Datapublic class ExcelCoordinate implements Serializable { private int firstRow; private int lastRow; private int firstCol; private int lastCol; public ExcelCoordinate(int firstRow,int lastRow,int firstCol,int lastCol) {.原创 2021-09-24 19:04:09 · 806 阅读 · 0 评论