https://liuyanzhao.com/1503010911382802434.html
可以通过设置此属性来选择退出此更改:
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
或者:设置options
RequestMappingInfo.BuilderConfiguration options = new RequestMappingInfo.BuilderConfiguration();
options.setPatternParser(new PathPatternParser());
String key = "/v5/person/{id}"
RequestMethod requestMethod = RequestMethod.GET
RequestMappingInfo requestMappingInfo =
RequestMappingInfo.paths(key)
.methods(requestMethod)
.options(options) //This is Builder config
.build();