DS
server.servlet.context-path=/api/v1 на@RequestMapping("${app.endpoints.base_path}" + "${app.endpoints.items.base_url}") для маппинга общих путей контроллеров.Size: a a a
DS
server.servlet.context-path=/api/v1 на@RequestMapping("${app.endpoints.base_path}" + "${app.endpoints.items.base_url}") для маппинга общих путей контроллеров.D𝔇
AB
ES
DP
ES
ES
I
VS
NR
ТК
S
"/atms/{route}/{iD}"
в/atms/{route}/{paramId}
регулярка "(.*/\\{)(.*)(\\}(?:.*))"
Точнее не почему, а как подправить регулярку){(.*?)}?I
{(.*?)}?I
{(.*?)}?S
abc, а второе для def
Matcher matcher = Pattern.compile("\\{(.*?)}").matcher("/atms/{route}/{iD}");
StringBuffer sb = new StringBuffer();
if (matcher.find()) {
matcher.appendReplacement(sb, "abc");
}
if (matcher.find()) {
matcher.appendReplacement(sb, "def");
}
return sb.toString();I
abc, а второе для def
Matcher matcher = Pattern.compile("\\{(.*?)}").matcher("/atms/{route}/{iD}");
StringBuffer sb = new StringBuffer();
if (matcher.find()) {
matcher.appendReplacement(sb, "abc");
}
if (matcher.find()) {
matcher.appendReplacement(sb, "def");
}
return sb.toString();