$.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
用eclipse报js错误的同学,这样修改js引用
<script src="${pageContext.request.contextPath}/resources/script/seckill.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/resources/script/seckill.js" type="text/javascript"></script>
2016-09-30
报404错误的试试: http://localhost:8080/seckill/seckill/list
2016-09-30
2、DispatchServlet加载不了。 看了很多说法, 其实关键是要在Delopyment Assembly 里面加上 Maven Dependencies (WEB-INF/lib). 这个目录要手动在webapp目录下创建。 至于 listener, 本例spring mvc构架是不需要的
3、项目的访问地址居然 是 http://localhost:8080/seckill/seckill/list
4、视频里面 SeckillController 里面的list方法上面的@RequestMapping(name = "/list", 这里name其实是value.
3、项目的访问地址居然 是 http://localhost:8080/seckill/seckill/list
4、视频里面 SeckillController 里面的list方法上面的@RequestMapping(name = "/list", 这里name其实是value.
2016-09-23