写bug的小杨

导航

2023年11月6日 #

mac打开2023.2版本idea闪退

摘要: 一、打开Mac的应用程序 右键IntelliJ IDEA.app图标点击显示包含内容 二、依次进入Contents/MacOS目录 三、双击IDEA 四、查看控制台报错信息 百度搜: parseVMOptions: platform=19 user=3 file=/Users/xxx/Library 阅读全文

posted @ 2023-11-06 09:36 迷途的小狗 阅读(1638) 评论(0) 推荐(0) 编辑

2022年1月30日 #

break语法使用

摘要: public static void main(String[] args) { int[] asteroids=new int[]{-2,-2,2,-1}; Stack<Integer> stack=new Stack<>(); for(int star:asteroids){ collision 阅读全文

posted @ 2022-01-30 15:38 迷途的小狗 阅读(48) 评论(0) 推荐(0) 编辑

2022年1月29日 #

字符串的排列

摘要: 太久没写博客,随便来一个class Solution { public boolean checkInclusion(String s1, String s2) { int n=s1.length(); int m=s2.length(); if(n>m) return false; //cnt1为 阅读全文

posted @ 2022-01-29 13:18 迷途的小狗 阅读(29) 评论(0) 推荐(0) 编辑

2021年1月20日 #

岛屿数量——BFS / DFS对比

摘要: DFS 解法 class Solution { public int numIslands(char[][] grid) { int count=0; for(int i=0;i<grid.length;i++){ for(int j=0;j<grid[0].length;j++){ if(grid 阅读全文

posted @ 2021-01-20 22:45 迷途的小狗 阅读(71) 评论(0) 推荐(0) 编辑

2020年10月15日 #

杂七杂八笔记

摘要: 1.@Async @Async注解一般用在类的方法上,如果用在类上,那么这个类所有的方法都是异步执行 2.两个Integer类型的值想比较,用.intValue if (adminId.intValue()!=appUser.getAdminId().intValue()) { return Ser 阅读全文

posted @ 2020-10-15 11:16 迷途的小狗 阅读(103) 评论(0) 推荐(1) 编辑

2020年9月22日 #

时间格式处理

摘要: sql时间处理: https://blog.csdn.net/the_it_world/article/details/100743945 改成精确到天 DATE_FORMAT(app_last_time,'%Y-%m-%d') 创建时间精确到天 SimpleDateFormat bartDateF 阅读全文

posted @ 2020-09-22 14:44 迷途的小狗 阅读(136) 评论(0) 推荐(0) 编辑

2020年9月3日 #

远程断点

摘要: 1.这里选远程断点的名字 2.点击虫子 3.连接 4.查看远程断点服务的配置 阅读全文

posted @ 2020-09-03 01:26 迷途的小狗 阅读(259) 评论(0) 推荐(0) 编辑

2020年8月28日 #

BigDecimal、double

摘要: BigDecimal篇: 1.String转BigDecimal String s1="123.45"; BigDecimal bg=new BigDecimal(s1); 2. 解决double相加的精度问题,要用BigDecimal public static double add(double 阅读全文

posted @ 2020-08-28 12:23 迷途的小狗 阅读(215) 评论(0) 推荐(0) 编辑

2020年6月24日 #

redis存储和取

摘要: 存:String sendAppFriendCircle = RedisKey.getFriendCircleKey("fq:sendAppFriendCircle:" + dataBean.getEditId(), dataBean.getEditId());appRedisTemplate.op 阅读全文

posted @ 2020-06-24 12:13 迷途的小狗 阅读(278) 评论(0) 推荐(0) 编辑

2020年5月18日 #

在Idea中使用Git后,类名各种颜色代表的含义

摘要: 绿色,已经加入控制暂未提交红色,未加入版本控制蓝色,加入,已提交,有改动白色,加入,已提交,无改动灰色:版本控制已忽略文件。 阅读全文

posted @ 2020-05-18 09:05 迷途的小狗 阅读(4517) 评论(0) 推荐(0) 编辑