easyexcel导出结束后报:java.io.IOException: Stream closed

在使用springboot构建项目时,使用zipkin进行链路跟踪,springboot内部容器可能使用的是undertow,因此导致此错误。

将容器undertow排除:

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
           <groupId>io.zipkin.java</groupId>
           <artifactId>zipkin-server</artifactId>
           <exclusions>
               <exclusion>
                   <groupId>org.springframework.boot</groupId>
                   <artifactId>spring-boot-starter-undertow</artifactId>
               </exclusion>                    
           </exclusions>
        </dependency> 

猜你喜欢

转载自blog.csdn.net/LOVE_Me__/article/details/109286450