更新时间:2021-08-24 16:28:49
@Path
表示法支持普通字符串匹配路径或正则表达式匹配模式.你的情况
@Path
notation supports normal strings to match the path or a regex to match a pattern. In your case
@Path("{image:image/.*}")
似乎只是匹配
Path param {image} 带有任何模式,如 image/.*,基本上可以转换为 image/anything ,这里的任何内容都不是指任何东西"这个词,而是指其字面意思,即任何有效文本.
Path param {image} with any pattern like image/.*, which basically translates to image/anything , anything here does not refer to the word 'anything' but its literal meaning i.e. any valid text.
更正:有关完整详细信息,请参阅 @Sotirios Delimanolis 答案.感谢伙伴的更正输入.
Correction: Refer to @Sotirios Delimanolis answer for complete details. Thanks mate for correction input.