$.cookie('killPhone', inputPhone, {expires:7, path:'/maven-archetype-webapp/seckill'});
path加入项目名了,不然写不进去cookie
path加入项目名了,不然写不进去cookie
2016-10-16
http://127.0.0.1:8080/maven-archetype-webapp/seckill/list
http://127.0.0.1:8080/maven-archetype-webapp/seckill/1000/detail
http://127.0.0.1:8080/maven-archetype-webapp/seckill/1000/detail
2016-10-16
最新回答 / 慕设计7118026
我的项目也是这个路径才能访问:http://localhost:8080/seckill/seckill/1000/detail去掉@RequestMapping("/seckill") 就好了我认为是使用Controller进行重定向时会去找项目seckilll下的"/seckill"这个路径,所以访问路径中就会出现两个/seckill路径。<...图片...>
2016-10-14
最赞回答 / 豌豆华
选择EditConfigration,点击加号:Add New Configration,选择tomcat server-->local将自己的Application server选择好,我用的是tomcat7然后在Deployment,选中开发的seckill项目点击Ok配置完成。
2016-10-13
$.get(seckill.URL.now(), {}, function(result){...}
浏览器报500错: http://localhost:8080/seckill/time/now
点击链接后显示错误:Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class com.seckill.dto.SeckillResult
浏览器报500错: http://localhost:8080/seckill/time/now
点击链接后显示错误:Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class com.seckill.dto.SeckillResult