- 博客(63)
- 问答 (1)
- 收藏
- 关注
原创 atlas 编译包
atlas 编译包atlas 2.1.0 编译好的包,拿走求赞链接: https://pan.baidu.com/s/1l2qh8tRXaAeV56df9V69ag 提取码: dof0
2021-11-22 16:24:26
226
原创 Spark streaming直连Kafka分区问题
Spark streaming直连Kafka的情况下:一个topic对应的分区数量N决定sparkstreaming分区数量,也就是相等关系。
2021-08-04 21:21:51
458
2
原创 datagrip连接mysql报错[08S01]
datagrip连接mysql报错[08S01]Failed[08S01] Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. javax.net.ssl.SSLHandshakeException: No appropriate protoc
2021-06-04 16:38:41
7958
12
原创 Spring Boot Jpa 自定义SQL
Spring Boot Jpa 自定义SQL自定义查询语句的几种方式使用@Query注解public interface UserRepository extends JpaRepository<User, Long> { @Query("select u from User u where u.emailAddress = ?1") User findByEmailAddress(String emailAddress);}模糊查询public interface User
2021-01-14 10:44:50
674
原创 Lombok + @slf4j注解 + log 变量来源
为什么使用@slf4j注解后,log变量可以直接使用?因为使用注解后,lombok会在编译后自动加上这段代码,所以log变量可以直接使用。private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);类似的,@Log注解,会有private static final java.util.logging.Logger log = java.util.loggi
2020-09-14 10:59:33
1443
5
原创 Mac彻底卸载、删除Idea教程,Your idea evaluation has expired. Your session will be limited to 30 minutes
1、卸载应用程序2、打开终端,分别执行rm -rf ~/Library/Application\ Support/JetBrainsrm -rf ~/Library/Application\ Support/IntelliJ\ IDEArm -rf ~/Library/Logs/JetBrains rm -rf ~/Library/Logs/IntelliJIdea/ rm -rf ~/Library/Caches/JetBrainsrm -rf ~/Library/Caches/Int
2020-08-28 21:07:03
3094
2
转载 JAVA常用工具类汇总
转载自:https://blog.csdn.net/qq_37493556/article/details/98622575一、字符串工具类 org.apache.commons.lang.StringUtilsisEmpty(String str) 是否为空,空格字符为falseisNotEmpty(String str) 是否为非空,空格字符为trueisBlank(String str) 是否为空,空格字符为trueisNotBlank(String str) 是否为非空,空格字
2020-08-07 17:43:57
164
转载 JWT JSON Web Token 阮一峰老师
http://www.ruanyifeng.com/blog/2018/07/json_web_token-tutorial.html记录一下JWT课程
2020-08-06 16:34:43
1119
原创 MySQL安装配置时出现:Access denied for user ‘root‘@‘localhost‘ (using password: YES)
问题描述:MySQL安装配置时出现:Access denied for user 'root'@'localhost' (using password: YES) 。(using password: YES) 说明密码输入正确,如果是(using password: NO) ,请检查密码输入是否正确。问题出现:[mysqld]character-set-server=utf8bind-address = 0.0.0.0port = 3306basedir=D:/Java/MySQL
2020-08-04 10:10:52
322
原创 IDEA 导包时报错:Unable to import maven project: See logs for details
可能导致Unable to import maven project: See logs for details的原因是:idea与maven版本不匹配,idea版本过低,maven版本高。解决方案:降低maven版本或者升级idea。历史版本maven下载路径如下:https://archive.apache.org/dist/maven/maven-3/以上...
2020-08-03 19:27:28
147
原创 剑指offer42 连续子数组最大和 Java
public class ContinueSubArrayMaxSum42__ { public static void main(String[] args) { int[] arr = {1, -2, 4, 10, -4, 7, 2, -5}; System.out.println(subArrayMaxSum(arr)); } pr...
2019-08-19 09:01:27
105
1
原创 剑指offer 34 二叉树中和为某一值的路径 Java
public class BinaryTreePath34_ { static class Node { int val; Node left; Node right; public Node(int val) { this.val = val; } @Overri...
2019-08-19 09:00:40
86
原创 剑指offer 36 二叉搜索树转化为双向链表 Java
public class BinaryTreeToDoubleLinkList36 { static class Node { int val; Node left; Node right; public Node(int val) { this.val = val; } ...
2019-08-19 09:00:33
106
原创 剑指offer27 二叉树的镜像 Java
public class BinaryTreeMirror27_ { static class Node { int val; Node left; Node right; public Node(int val){ this.val = val; } @Overrid...
2019-08-19 09:00:28
77
原创 剑指offer55 二叉树高度||深度 Java
public class DeepOfBinaryTree55 { static class Node { int val; Node left; Node right; public Node(int val) { this.val = val; } @Overr...
2019-08-19 09:00:21
111
原创 剑指offer12 矩阵中的路径 Java
public class FindPath12_ { public static void main(String[] args) { char[][] arr = {{'a', 'b', 't', 'g'}, {'c', 'f', 'c', 's'}, {'j', 'd', ...
2019-08-19 09:00:15
99
原创 剑指offer 18 删除链表中重复节点 Java
public class DeleteRepeatNode18 { static class Node{ int data; Node next; public Node(int data) { this.data = data; } } public static void mai...
2019-08-17 15:12:44
95
原创 剑指offer53 有序数组查找数字出现的次数 Java
public class FineNumber53 { public static void main(String[] args) { int[] arr = {1, 2, 3, 3, 3, 4, 5}; int n = 3; int first = times(arr, n); int last = times(arr,...
2019-08-17 15:12:39
160
1
原创 剑指offer49 丑数
丑数,2,3,5的倍数,1是第一个丑数public class GetUglyNumber49 { public static void main(String[] args) { int n = 55; System.out.println(ugly(n)); } private static int ugly(int n) {...
2019-08-17 15:12:34
111
原创 剑指offer55 是否是平衡二叉树 Java
public class IsBalancedTree55 { static class Node { int val; Node left; Node right; public Node(int val) { this.val = val; } @Overrid...
2019-08-17 15:12:28
122
原创 剑指offer58 左旋转字符串 Java
public class LeftReverseString58 { public static void main(String[] args) { String str = "abcdefg"; System.out.println(leftReverse(str, 3)); } private static String leftR...
2019-08-17 15:12:22
84
原创 剑指offer48 最长不重复子串 Java
public class LongestSubStringWithoutDuplication48__ { public static void main(String[] args) { String str = "arabcacfr"; System.out.println(subString(str)); int i = 0; ...
2019-08-17 15:12:17
130
原创 剑指offer25 合并两个有序链表 Java
public class MergeSortedLinkList25 { static class Node { int val; Node next; public Node(int val){ this.val = val; } @Override public S...
2019-08-17 15:12:12
82
原创 剑指offer40 最小的K个数 Java
public class MinestK40_ { public static void main(String[] args) { int[] arr = {4, 5, 1, 6, 2, 7, 3, 8}; int k = 4; minestK(arr, k - 1); for (int i = 0; i < 4; ...
2019-08-17 15:12:05
90
原创 剑指offer08 二叉搜索树中序遍历某节点的下一个节点 Java
private static Node nextNode(Node node) { //只有一个节点 if (node.left == null && node.right == null) return null; //若该节点有右孩子 if (node.right != null) { ...
2019-08-17 15:11:59
254
原创 剑指offer21 链表中的倒数第K个节点 Java
public class NumKOfReverse21 { static class Node { int val; Node next; public Node(int val){ this.val = val; } @Override public String ...
2019-08-17 15:11:53
79
原创 剑指offer15 二进制中1的个数 Java
public class NumOfOne15 { public static void main(String[] args) { int n = 15; System.out.println(countOne2(n)); } private static int countOne(int n) { int count ...
2019-08-15 09:34:37
69
原创 剑指offer39 出现次数超过一半的数 Java
public class NumOverHalf39 { public static void main(String[] args) { int[] arr = {1, 2, 3, 2, 2, 2, 5, 4, 2}; System.out.println(overhaf(arr)); } private static int over...
2019-08-15 09:34:31
74
原创 剑指offer21 奇偶序列 Java
public class OddEvenSequence21 { public static void main(String[] args) { int[] arr = {1, 2, 5, 6, 4, 3, 8, 0}; adjust(arr); for (int i = 0; i < arr.length; i++) { ...
2019-08-15 09:34:25
136
原创 剑指offer 56 出现一次的数 Java
数组中只有一个数只出现1次,其他的出现3次,找出这个数public class OnceInOtherThree56 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 1, 1, 2, 4, 4, 2}; findThat(arr); } priv...
2019-08-15 09:34:20
87
原创 剑指offer32 从上到下打印二叉树 Java
public class PrintBinaryTreeTopToBottom32 { static class Node { int val; Node left; Node right; public Node(int val){ this.val = val; } ...
2019-08-15 09:34:14
71
原创 剑指offer 06 倒序打印链表 Java
public class PrintListFromTailToHead06 { static class Node { int val; Node next; public Node(int val){ this.val = val; } } public static void m...
2019-08-15 09:34:08
75
原创 剑指offer29 顺时针打印矩阵序列 Java
public class PrintMatrixSequence29 { public static void main(String[] args) { int[][] matrix = {{1, 2, 3, 4}, {5, 6, 7, 8},{9, 10, 11, 12}, {13, 14, 15, 16}}; int rows = matrix.le...
2019-08-15 09:33:53
77
原创 剑指offer 07 重建二叉树 Java
public class RebuildBinaryTree07_ { static class Node { int val; Node left; Node right; public Node(int val){ this.val = val; } @Overr...
2019-08-15 09:33:46
103
原创 剑指offer24 反转链表 Java
public class ReverseLinkList24 { static class Node { int val; Node next; public Node(int val){ this.val = val; } @Override public Strin...
2019-08-15 09:33:39
84
原创 剑指offer58 反转字符串 Java
public class ReverseString58_ { public static void main(String[] args) { String str = "i am a student!"; System.out.println(reverseString(str)); } private static St...
2019-08-15 09:33:33
99
原创 剑指offer30 包含min函数的栈 Java
public class StackIncludeMinFunc30_ { static class Stackck { static Stack<Integer> stack = new Stack<>(); static Stack<Integer> minStack = new Stack<>()...
2019-08-14 08:59:36
68
原创 剑指offer31 验证一个出栈顺序是否正确 Java
public class StackIsValide31 { public static void main(String[] args) { int[] in = {1, 2, 3, 4, 5}; int[] out = {4, 5, 3, 1, 1}; System.out.println(isValide(in, out)); ...
2019-08-14 08:59:23
177
原创 剑指offer26 树的子结构 Java
public class SubTreeConstruct26_ { static class Node { int val; Node left; Node right; public Node(int val){ this.val = val; } @Overrid...
2019-08-14 08:59:13
98
原创 剑指offer57 和为某数的两个数字 Java
public class SumEqualsNum57 { public static void main(String[] args) { int[] arr = {1, 2, 3, 5, 6, 7, 8, 9, 10}; findTwo(arr, 14); } private static void findTwo(int[] arr...
2019-08-14 08:59:07
91
空空如也
flink on k8s中taskmanager日志回收问题
2021-08-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人