以前的写法:
@GetMapping("/xxx/{money}")
public ResponseBean test(@PathVariable Double money) {
.......
}
改为:
@GetMapping("/xxx/{money:.+}")
public ResponseBean test(@PathVariable Double money) {
.......
}
以前的写法:
@GetMapping("/xxx/{money}")
public ResponseBean test(@PathVariable Double money) {
.......
}
改为:
@GetMapping("/xxx/{money:.+}")
public ResponseBean test(@PathVariable Double money) {
.......
}
转载于:https://my.oschina.net/yuantangxi/blog/3092849