报错:

出错场景:springboot开发环境,ssl+wss报错

网上说是一个bug:

于是直接升级springboot内置tomcat

原来:

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

升级后:

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.6.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

以上方案会把tomcat8.x.x升级到9.x.x,慎重使用。

参考:https://blog.csdn.net/u012366200/article/details/81946726

http://tomcat.10.x6.nabble.com/Bug-59062-New-Failed-to-close-the-ServletOutputStream-connection-cleanly-td5047124.html

02-13 07:39