sse问题记录

org.eclipse.jetty.io.EofException

 


sse问题记录

 

 

 

java.lang.IllegalStateException: Calling [asyncError()] is not valid for a request with Async state 

问题的相关描述看这里

https://github.com/spring-projects/spring-boot/issues/15057

里面有建议的暂行解决方案是降级tomcat

也可以使用jetty替换

去除tomcat的依赖

  <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
        <exclusion>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <groupId>org.springframework.boot</groupId>
        </exclusion>
    </exclusions>
        </dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>