springboot项目中报如下错误

The valid characters are defined in RFC 7230 and RFC 3986

解决方法:在springboot的配置文件中做如下的配置即可

server: 
  tomcat:
    relaxed-query-chars: ['|','{','}','[',']']
    relaxed-path-chars: ['|','{','}','[',']']