Url中只允许包含英文字母(a-z,A-Z)、数字(0-9)、- _ . ~ 4个特殊字符以及所有保留字符。
保留字符:! * ’ ( ) ; : @ & = + $ , / ? # [ ]
在js中GET请求接口时,参数中带有除上面字符以外的其他字符({},|)都会被tomcat拦截导致接口调用失败,需要进行转义。
参考:https://blog.csdn.net/ezreal_king/article/details/72654157
Url中只允许包含英文字母(a-z,A-Z)、数字(0-9)、- _ . ~ 4个特殊字符以及所有保留字符。
保留字符:! * ’ ( ) ; : @ & = + $ , / ? # [ ]
在js中GET请求接口时,参数中带有除上面字符以外的其他字符({},|)都会被tomcat拦截导致接口调用失败,需要进行转义。
参考:https://blog.csdn.net/ezreal_king/article/details/72654157