![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常
yibox
Nothing great is ever achieved without much enduring
展开
-
当switch括号内的变量类型为String并且此变量为外部参数时,必须先进行null判断。Switch(null) NullPointerException
【强制】当switch括号内的变量类型为String并且此变量为外部参数时,必须先进行null判断。/** * @Author: 陈艺博 * @Date: 2020-04-01 15:27 * @Description: */public class Java { public static void main(String[] args) { method...原创 2020-04-01 16:39:42 · 1947 阅读 · 2 评论 -
项目在建立SQL数据库连接Establishing SSL connection without server's identity verification is not recommende
Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set.原创 2019-11-01 12:12:05 · 150 阅读 · 0 评论 -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: java异常原创 2019-08-31 00:54:11 · 4347 阅读 · 0 评论 -
java异常NullPointerException
空指针异常。原因:数组已经不在指向堆内存了。而你还用数组名去访问元素。原创 2019-08-31 00:54:53 · 166 阅读 · 0 评论 -
Exception in thread "main" java.lang.StackOverflowError
错误Exception in thread "main" java.lang.StackOverflowError# 错误产生原原创 2019-09-03 22:03:16 · 2688 阅读 · 2 评论 -
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request
# 错误提示2019-09-04 10:57:58.257 ERROR 11308 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is or原创 2019-09-04 11:06:42 · 4615 阅读 · 0 评论 -
org.springframework.web.method.annotation.MethodArgumentTypeMismatchException:
目录错误提示错误原因错误改正错误提示org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'long'; nested exception is java....原创 2019-09-04 11:39:57 · 2379 阅读 · 0 评论 -
java.lang.ClassCastException 强制类型转换时产生的异常
目录出错提示解决方式源代码出错提示Cat 这个类 不能够转换为Dog 在AnimalDemo.java:19这个位置Exception in thread "main" java.lang.ClassCastException: ClassCastException.Cat cannot be cast to ClassCastException.Dog at ClassCastExcep...原创 2019-09-12 10:55:58 · 2074 阅读 · 0 评论