springboot静态文件带百分号%报400
这里主要的原因就是%没有转义 所以才报400,需要把%转义成%25,所以要把文件名陈encode一下
但是转义之后又报500
URLDecoder: Illegal hex characters in escape (%) pattern - For input string: “??”
这里是springboot版本太低了换成2.4.13的
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.13</version>
然后就可以了!