Extracting zipped file from ResourceStream throws error “Invalid stored block lengths”

后端 未结 3 1074
醉酒成梦
醉酒成梦 2020-12-11 15:23

I am trying to extract a ZIP file from my current JAR using:

InputStream resource = getClass().getClassLoader().getResourceAsStream(name);

3条回答
  •  执笔经年
    2020-12-11 16:11

    Change spring-boot-starter-parent to 2.0.4.RELEASE. It worked for me.

      
            org.springframework.boot
            spring-boot-starter-parent
            2.0.4.RELEASE
            
        
    

提交回复
热议问题