项目

一般

简介

2.0.x 应用报 org.springframework.boot.web.server.Compression.getMinResponseSize()Lorg/springframework/util/unit/DataSize; 的问题

由 huang junrui 在 超过 3 年 之前添加

异常信息:

An attempt was made to call the method org.springframework.boot.web.server.Compression.getMinResponseSize()Lorg/springframework/util/unit/DataSize; but it does not exist. Its class, org.springframework.boot.web.server.Compression, is available from the following locations:

    jar:file:/D:/project/end/maven/repository/org/springframework/boot/spring-boot/2.0.9.RELEASE/spring-boot-2.0.9.RELEASE.jar!/org/springframework/boot/web/server/Compression.class

It was loaded from the following location:

    file:/D:/project/end/maven/repository/org/springframework/boot/spring-boot/2.0.9.RELEASE/spring-boot-2.0.9.RELEASE.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.web.server.Compression


Process finished with exit code 1

版本号:

解决时间:2021-10-20

解决方案:

1、将应用的springboot版本由2.0.x改为2.1.x 以上

2、使用附件的jar包,并重启install

界面现象:

日志截图:

解决操作: