Could not initialize class org.springframework.core.convert.support.DefaultConversionService
為什麼每次我報的錯 都沒有人報過的..心累啊
為什麼每次我報的錯 都沒有人報過的..心累啊
2017-06-16
前面兩門課程我覺得老師真厲害,枚舉異常都用上了??墒菍懙浆F(xiàn)在我發(fā)現(xiàn),異常那部分應(yīng)該可以省去不寫,executeSeckill()中的所有if語句可以寫成這樣
return new SeckillExecution(seckillId, SeckillStateEnum.DATA_REWRITE);而不是throw一個異常出去。這樣 controler會好寫一些,正好用上了枚舉。
return new SeckillExecution(seckillId, SeckillStateEnum.DATA_REWRITE);而不是throw一個異常出去。這樣 controler會好寫一些,正好用上了枚舉。
2017-06-11
我的時間格式出現(xiàn)問題,nowTime和startTime,endTime格式不一樣,無法比較,解決方案如下,希望對遇到同樣問題的同學(xué)有幫助:
countdown:function(seckillId,nowTime,startTime,endTime) {
var seckillBox = $('#seckill-box');
var nowTime = new Date(nowTime);
var startTime = new Date(startTime);
var endTime = new Date(endTime);
countdown:function(seckillId,nowTime,startTime,endTime) {
var seckillBox = $('#seckill-box');
var nowTime = new Date(nowTime);
var startTime = new Date(startTime);
var endTime = new Date(endTime);
我再調(diào)試中出現(xiàn) Property Editor not registered with the PropertyEditorManager 的bug,后來在兩個jsp頭加上<%@page isELIgnored="false"%>即可
2017-05-30