我想知道并且无法获得任何最好的文档,当我们有单个元素添加或附加到容器时,$ .add和$ .append之间有什么区别.
提前致谢
我有控制器在其中有多个@RequestMapping注释.
@Controller
public class SignUpController {
@RequestMapping("signup")
public String showSignUp() throws Exception {
return "somejsp";
}
@RequestMapping("fullSignup")
public String showFullSignUp() throws Exception {
return "anotherjsp";
}
@RequestMapping("signup/createAccount")
public String createAccount() throws Exception {
return "anyjsp";
}
}
Run Code Online (Sandbox Code Playgroud)
如何将这些@RequestMapping映射到不区分大小写.即如果我使用"/ fullsignup"或"/ fullSignup",我应该得到"anotherjsp".但现在这种情况并没有发生.只有"/ fullSignup"才能正常工作.
我试过扩展RequestMappingHandlerMapping但没有成功.我也尝试过AntPathMatcher,就像在这个论坛上提到的另一个问题,但它也不适用于@RequestMapping注释.
调试控制台

服务器启动时的输出控制台.

我添加了两张显示问题的图片.我已经尝试了下面提到的两种解决方案.控制台说它映射了小写的URL,但是当我请求访问带有小写url的方法时,它会显示存储值的原始映射包含MixCase URLS.
我使用RestFB使用Facebook Graph.当我试图将URL发布到Facebook时 -
http://localhost:8080/demo
Run Code Online (Sandbox Code Playgroud)
我甚至试过了
http://www.wannaget.com/home
Run Code Online (Sandbox Code Playgroud)
这也行不通.问题不是本地或实时网址.因为这在以前工作但现在它给我无效的URL错误.
它给出了以下回复
INFO: Facebook responded with HTTP status code 400 and response body: {"error":{"message":"(#1500) The url you supplied is invalid","type":"OAuthException","code":1500}}
Run Code Online (Sandbox Code Playgroud)
我不明白为什么会这样.一切都很好,但现在我正面临着这个问题.
有没有办法通过jquery/javascript修改jquery ui中的选项卡的链接?
样本问题就像
标签包含网址 "http://thanksforyourhelp/greatly/appreciated/"
如果在该选项卡上提交表单,则会将数据写入数据库.响应提供添加到数据库的行的ID.
下次访问特定选项卡时,链接实际应该是
'http://thanksforyourhelp/greatly/appreciated/ID'
Run Code Online (Sandbox Code Playgroud)
现在知道ID,因为表单的响应(这里也是ajax)将其发回.当这个响应出现时,我将重新加载当前选项卡,其中包含ID.
在JQuery 1.10之前.我们可以做这样的事情
$("#tabs").tabs("url", index, url);
Run Code Online (Sandbox Code Playgroud)
我们如何在JQuery UI 1.10+中做到这一点.在JQuery 1.10中删除了URL方法?