丈夫欲遂平生志,一载寒窗一举汤。这篇文章主要讲述@RequestMapping value 能够反复吗 [相关的知识,希望能为你提供帮助。
@RequestMapping value 能够反复吗?[问题点数:40分,结帖人wangqiao4j]?u=http://bbs.csdn.net/topics/390858539&
t=@RequestMapping%20value%20%E5%8F%AF%E4%BB%A5%E9%87%8D%E5%A4%8D%E5%90%97" id="fav" class="fav" style="color:rgb(51,51,51);
text-decoration:none;
padding:2px 5px;
border:1px solid rgb(127,157,185);
background:rgb(255,255,255);
">
文章图片
收藏
-
文章图片
-
关注
-
wangqiao4j
-
wangqiao4j
-
本版等级:
文章图片
-
结帖率:100%
-
|
楼主发表于: 2014-08-13 10:41:31java@RequestMappingvalue
在同一项目中的同一个java文件里,两个方法的@RequestMapping?value?能够反复吗?求大神解答。很多其它0分享到:相关课程推荐:
-
微信公众平台深度开发Java版v2.0(第二季)精编版
-
微信公众平台深度开发Java版 v2.0(第六季)
-
微信公众平台深度开发Java版v2.0(第一季)精编版
-
PHP面向对象设计模式
- <
iframe id="iframeu1636200_0" src="http://pos.baidu.com/ucrm?
rdid=1636200&
amp;
dc=2&
amp;
exps=112101&
amp;
di=u1636200&
amp;
dri=0&
amp;
dis=0&
amp;
dai=2&
amp;
ps=722x246&
amp;
dcb=BAIDU_SSP_define&
amp;
dtm=BAIDU_DUP_SETJSONADSLOT&
amp;
dvi=0.0&
amp;
dci=-1&
amp;
dpt=none&
amp;
tsr=0&
amp;
tpr=1458875265242&
amp;
ti=%40RequestMapping%20value%20%E5%8F%AF%E4%BB%A5%E9%87%8D%E5%A4%8D%E5%90%97-CSDN%E8%AE%BA%E5%9D%9B-CSDN.NET-%E4%B8%AD%E5%9B%BD%E6%9C%80%E5%A4%A7%E7%9A%84IT%E6%8A%80%E6%9C%AF%E7%A4%BE%E5%8C%BA&
amp;
ari=1&
amp;
dbv=2&
amp;
drs=3&
amp;
pcs=1071x466&
amp;
pss=1071x3133&
amp;
cfv=0&
amp;
cpl=4&
amp;
chi=1&
amp;
cce=true&
amp;
cec=UTF-8&
amp;
tlm=1458875269&
amp;
ltu=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F390858539&
amp;
ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DNID3EiQ5_Ka05WhVUkmbNnomKM8Pv-_K2_9pOzYiIy2omErhSxZoR8FY92yeXyST%26wd%3D%26eqid%3Db7f150e80002c40a0000000556f4ab41&
amp;
ecd=1&
amp;
psr=1366x768&
amp;
par=1366x728&
amp;
pis=-1x-1&
amp;
ccd=24&
amp;
cja=false&
amp;
cmi=6&
amp;
col=zh-CN&
amp;
cdo=-1&
amp;
tcn=1458875269&
amp;
qn=0f80c33c57806f79&
amp;
tt=1458875265213.4121.4469.4470" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="box-sizing: content-box;
border-width: 0px;
border-style: initial;
vertical-align: bottom;
margin: 0px;
">
<
/iframe>
? - <
iframe id="iframeu1636201_0" src="http://pos.baidu.com/ucrm?rdid=1636201&
amp;
dc=2&
amp;
exps=112101&
amp;
di=u1636201&
amp;
dri=0&
amp;
dis=0&
amp;
dai=3&
amp;
ps=722x500&
amp;
dcb=BAIDU_SSP_define&
amp;
dtm=BAIDU_DUP_SETJSONADSLOT&
amp;
dvi=0.0&
amp;
dci=-1&
amp;
dpt=none&
amp;
tsr=0&
amp;
tpr=1458875265242&
amp;
ti=%40RequestMapping%20value%20%E5%8F%AF%E4%BB%A5%E9%87%8D%E5%A4%8D%E5%90%97-CSDN%E8%AE%BA%E5%9D%9B-CSDN.NET-%E4%B8%AD%E5%9B%BD%E6%9C%80%E5%A4%A7%E7%9A%84IT%E6%8A%80%E6%9C%AF%E7%A4%BE%E5%8C%BA&
amp;
ari=1&
amp;
dbv=2&
amp;
drs=3&
amp;
pcs=1071x466&
amp;
pss=1071x3133&
amp;
cfv=0&
amp;
cpl=4&
amp;
chi=1&
amp;
cce=true&
amp;
cec=UTF-8&
amp;
tlm=1458875269&
amp;
ltu=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F390858539&
amp;
ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DNID3EiQ5_Ka05WhVUkmbNnomKM8Pv-_K2_9pOzYiIy2omErhSxZoR8FY92yeXyST%26wd%3D%26eqid%3Db7f150e80002c40a0000000556f4ab41&
amp;
ecd=1&
amp;
psr=1366x768&
amp;
par=1366x728&
amp;
pis=-1x-1&
amp;
ccd=24&
amp;
cja=false&
amp;
cmi=6&
amp;
col=zh-CN&
amp;
cdo=-1&
amp;
tcn=1458875269&
amp;
qn=b677067e7f9b6e2d&
amp;
tt=1458875265213.4123.4514.4557" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="box-sizing: content-box;
border-width: 0px;
border-style: initial;
vertical-align: bottom;
margin: 0px;
">
<
/iframe>
?
- <
iframe id="iframeu1636204_0" src="http://pos.baidu.com/ucrm?rdid=1636204&
amp;
dc=2&
amp;
exps=112101&
amp;
di=u1636204&
amp;
dri=0&
amp;
dis=0&
amp;
dai=4&
amp;
ps=722x754&
amp;
dcb=BAIDU_SSP_define&
amp;
dtm=BAIDU_DUP_SETJSONADSLOT&
amp;
dvi=0.0&
amp;
dci=-1&
amp;
dpt=none&
amp;
tsr=0&
amp;
tpr=1458875265242&
amp;
ti=%40RequestMapping%20value%20%E5%8F%AF%E4%BB%A5%E9%87%8D%E5%A4%8D%E5%90%97-CSDN%E8%AE%BA%E5%9D%9B-CSDN.NET-%E4%B8%AD%E5%9B%BD%E6%9C%80%E5%A4%A7%E7%9A%84IT%E6%8A%80%E6%9C%AF%E7%A4%BE%E5%8C%BA&
amp;
ari=1&
amp;
dbv=2&
amp;
drs=3&
amp;
pcs=1071x466&
amp;
pss=1071x3133&
amp;
cfv=0&
amp;
cpl=4&
amp;
chi=1&
amp;
cce=true&
amp;
cec=UTF-8&
amp;
tlm=1458875269&
amp;
ltu=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F390858539&
amp;
ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DNID3EiQ5_Ka05WhVUkmbNnomKM8Pv-_K2_9pOzYiIy2omErhSxZoR8FY92yeXyST%26wd%3D%26eqid%3Db7f150e80002c40a0000000556f4ab41&
amp;
ecd=1&
amp;
psr=1366x768&
amp;
par=1366x728&
amp;
pis=-1x-1&
amp;
ccd=24&
amp;
cja=false&
amp;
cmi=6&
amp;
col=zh-CN&
amp;
cdo=-1&
amp;
tcn=1458875269&
amp;
qn=f397f9e86acd773c&
amp;
tt=1458875265213.4124.4611.4646" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="box-sizing: content-box;
border-width: 0px;
border-style: initial;
vertical-align: bottom;
margin: 0px;
">
<
/iframe>
|
对我实用[0]?丢个板砖[0]?引用?|?举报?|?管理
回复次数:6
|
-
文章图片
-
关注
-
phy08
-
阿卡的郎
-
本版等级:
文章图片
-
|
#1?得分:0回复于: 2014-08-13 12:12:20不能够吧。假设反复的话?程序执行时?它知道要提交到哪个Controller么?
|
topic_id=390858539" class="red digg" style="color:rgb(51,51,51);
text-decoration:none;
margin:0px 2px;
background:transparent;
">对我实用[0]?丢个板砖[0]?引用?|?topic_id=390858539" class="fancybox red report_spam" style="color:rgb(51,51,51);
text-decoration:none;
margin:0px 2px;
background:transparent;
">举报?|?管理 |
-
文章图片
-
关注
-
JAVA_LiuTe
-
我是小小小小程序媛
-
本版等级:
文章图片
-
|
#2?得分:0回复于: 2014-08-13 12:44:31你反复value,编译是肯定不会报你的错的,可是到时候请求跳转到那个controller的方法。就得看天意了。你能够摆香桌,插三香祈祷跳到正确方法里。
|
topic_id=390858539" class="red digg" style="color:rgb(51,51,51);
text-decoration:none;
margin:0px 2px;
background:transparent;
">对我实用[0]?丢个板砖[0]?引用?|?举报?|?管理 |
-
文章图片
-
关注
-
whos2002110
-
whos2002110
-
本版等级:
文章图片
-
|
#3?得分:20回复于: 2014-08-13 14:10:23value反复是能够的。?但method属性就不能一样了,?必需是不同的方式。一个get,一个post才行
|
对我实用[2]?丢个板砖[0]?引用?|?举报?|?管理 |
-
文章图片
-
关注
-
longtian1213
-
S117
-
本版等级:
文章图片
-
文章图片
?
文章图片
|
#4?得分:20回复于: 2014-08-13 14:37:04能够,可是method要不同
|
对我实用[1]?丢个板砖[0]?引用?|?【@RequestMapping value 能够反复吗 [】topic_id=390858539" class="fancybox red report_spam" style="color:rgb(51,51,51);
text-decoration:none;
margin:0px 2px;
background:transparent;
">举报?|?管理 |
-
文章图片
-
关注
-
fanslate
-
byourfan
-
本版等级:
文章图片
-
|
#5?得分:0回复于: 2014-08-13 15:19:07就像方法重载一样,方法名能够同样。方法名和參数列表加在一起是一个方法签名
|
对我实用[1]?丢个板砖[0]?引用?|?topic_id=390858539" class="fancybox red report_spam" style="color:rgb(51,51,51);
text-decoration:none;
margin:0px 2px;
background:transparent;
">举报?|?管理 |
-
文章图片
-
关注
-
wangqiao4j
-
wangqiao4j
-
本版等级:
文章图片
-
|
#6?得分:0回复于: 2014-08-14 10:57:45我刚測试下,value反复是能够的,?但method属性就不能一样了。?必需是不同的方式,一个get。一个post才行,这样确实能够的,感谢各位大神的帮助
|
推荐阅读