junit测试spring boot 框架,启动报空指针异常。即,测试类启动后,并没有初始化spring 容器,加载bean。 解决办法: 蓝圈圈为启动类 转载于:https://www.cnblogs.com/Jenny22/p/10136253.html