springmvc中使用PathVariable注解参数后遇到以.结尾的参数值缺失问题@RequestParam

在springmvc中配置@PathVariable,遇到参数值以.结尾时,参数值缺乏,如Ip、版本等,如下为示例:spring https://***/api/cloud/10.13.25.46接收到的Ip值为10.13.25api 遇到相似状况能够经过多少方式解决:mvc 一、@RequestParam替换@PathVariablespa 二、在参数上加上任意字符,如{ip}改为{ip:.+}
相关文章
相关标签/搜索