【发布时间】:2013-05-02 11:22:19
【问题描述】:
编辑:
目标:http://localhost:8080/api/upload/form/test/test
Is it possible to have some thing like `{a-b, A-B..0-9}` kind of pattern and match them and replace with value.
我有以下字符串
http://localhost:8080/api/upload/form/{uploadType}/{uploadName}
可以有任何字符串,例如{uploadType}/{uploadName}。
如何用java中的一些值替换它们?
【问题讨论】:
-
创建一个名为“uploadName”的单独字符串并将其连接到您的父字符串
-
它不是静态字符串,它是动态字符串,这就是我挣扎和眨眼的地方
-
这个问题你已经问过了,为什么还要问? stackoverflow.com/questions/16335539/…
-
动态到底是什么意思?您的意思是不会有固定数量的组件需要更换?
-
感谢现在这个问题已经明白了