- 博客(9)
- 收藏
- 关注
原创 阿里云maven仓库 unable to find valid certification path to requested target
unable to find valid certification path to requested target
2022-10-31 11:53:14
538
原创 final、finally、finallize区别
final、finally、finallize区别 final: 1. 修饰类 类无法被继承 2. 修饰方法或变量 表示变量和方法在使用中不可改变 被修饰的变量赋值后不可改变 被修饰的方法不能重写(继承重写) finally: 1. 处理异常时使用,finally代码块一定会被执行 finallize: 1. java中方法名,来源于c++中析构函数,垃圾收集时,如果该对象没有引用,调用该方法,释放空间 ...
2021-11-11 17:12:20
1232
原创 java实现树形菜单
项目场景: java实现树形菜单遇到问题 问题描述: 简单使用递归结构实现菜单创建,postman测试始终500.逻辑没有发现问题 List<Menu> childList = new ArrayList<>(); for(Menu menu:menus){ if(menu.getParentId()==id.intValue()){ childList.add(menu); }
2020-09-28 12:58:37
355
原创 2020-09-22
springdata jpa 连接mysql使用 数据库配置 实例配置(自动生成实例 ddl-auto:update,showsql: true) 继承repository接口 参考: https://www.jianshu.com/p/c23c82a8fcfc https://blog.youkuaiyun.com/wzmde007/article/details/100031551
2020-09-22 10:26:37
102
原创 lombok @Data注解使用问题
lombok @Data注解使用问题 问题描述:IDEA使用lombok @DATA注解在Structure中已经存在get/set方法时,无法调用 原因:pom依赖中没有指定lombok版本 解决:查看maven repository中org.projectlombok:lombok中版本号,在pom中导入对应版本的依赖 ...
2020-09-15 17:26:12
497
原创 spring-boot-maven-plugin not found
新手刚学spring boot ,新建工程导入包的时候spring-boot-maven-plugin not found爆红 解决方案: 添加版本号之后,Maven reload(之后依然爆红,file restart即可)
2020-08-12 21:39:48
785
原创 conda修改清华源
conda修改清华源 添加国内源: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main conda config --set show_channel_urls yes 换回默认源: conda config --remove
2020-05-08 23:56:49
1450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅