Spring Assert.notNull--IllegalArgumentException
2024-10-02 01:13:50
Exception in thread "main" java.lang.IllegalArgumentException: Source must not be null
at org.springframework.util.Assert.notNull(Assert.java:115)
at Test.getaVoid(Test.java:11)
at Test.main(Test.java:6)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
import org.springframework.util.Assert; public class Test { public static void main(String[] args) {
getaVoid();
System.out.println("hello");
} private static void getaVoid() {
Assert.notNull(null, "Source must not be null");
} }
最新文章
- 20145337 GDB调试汇编堆栈过程分析
- C#中时间的比较
- django 模版语法及使用
- 20145304 第五周Java学习报告
- Linux Mint 17 + 小米WIFI创建手机热点
- Tiny4412汇编流水灯代码,Tiny4412裸机LED操作[1]
- Codeforces 114A-Cifera(暴力)
- 【elasticsearch】(4)centos7 超简单安装elasticsearch 的 jdbc
- JavaScript中的一些细节
- iOS Swift--UIImageView UIImage
- loadrunner使用过程遇到的问题(一)
- python3之platform模块
- 偏差(Bias)和方差(Variance)——机器学习中的模型选择zz
- xhr.withCredentials发送跨域请求凭证
- Hibernate的继承映射
- 2 jmeter常用功能介绍-测试计划、线程组
- JDBC中的SPI实现
- js判断是否为空
- sql server2008系统表详细说明sys.开头的表
- 跟我学Makefile(五)
热门文章
- js课程 2-8 js内置对象有哪些
- VC和MATLAB混合开发经验总结
- Android隐藏输入法
- POJ 1287 Networking (ZOJ 1372) MST
- Mariadb配置文件优化参数(仅供参考)
- [JS Compose] 1. Refactor imperative code to a single composed expression using Box
- solaris 11 stdio.h: No such file or directory
- Home界面的启动
- 微信开发学习日记(六):weiphp框架
- [tmux] Enable mouse mode in tmux