在使用中发现springboot 2.1与2.2版本之间的区别
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
</parent>
下面的一段代码就会报错![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/689eb3e71e39f13a6e3527e66a183d00.png)
翻阅了下项目中的External Libraries 引入的 netty 版本为 4.1.36
更新了下starter 版本为 2.2系列 同样的代码 红色错误就会消失
springboot 2.1 版 与 2.2 版 的区别:
新增对 HTTP/2 支持