$.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