1、整个Spring5框架的代码基于Java8,运行时兼容JDK9,许多不建议使用的类和方法在代码库中删除。
2、Spring5.0框架自带了通用的日志封装
3、Spring5框架核心容器支持@Nullable注解
(1)@Nullalbe注解可以使用在方法上面,属性上面,参数上面,表示返回方法可以为空,属性值可以为空,参数值可以为空
(2)注解用在方法上面,方法返回值可以为空

4、Spring5核心容器支持函数式风格GennericApplicationContext
@Testpublic void testGenericApplicationContextTest(){GenericApplicationContext context = new GenericApplicationContext();context.refresh();context.registerBean(User.class,()->new User());User bean = context.getBean(User.class);System.out.println(bean);}
5、Spring5支持整合JUnit5
