sql語句創(chuàng)建時間戳類型錯誤,參考這個鏈接
https://blog.csdn.net/lis2012/article/details/82587901
https://blog.csdn.net/lis2012/article/details/82587901
2019-01-18
最贊回答 / plough
${username} 被系統(tǒng)用戶名覆蓋了,改個 key(${jdbc.username})數(shù)據(jù)庫版本不一致。比如本地數(shù)據(jù)庫是 8.0.12,mysql-connector-java 也要改成 8.0.12 這個版本以上是踩坑經(jīng)驗。
2018-12-05
在Eclipse的建立單元測試是,類文件右鍵->new->java->Junit->Junit Test Case
2018-12-04
create table success_killed(
seckill_id int not null comment '秒殺商品id',
user_phone int not null comment '用戶手機號',
state tinyint not null default -1 comment '狀態(tài)標(biāo)示:-1:無效‘
create_time timestamp not null comment '創(chuàng)建時間',
primary key(seckill_id,user_phone),
key idx_create_time(create_time)
)
seckill_id int not null comment '秒殺商品id',
user_phone int not null comment '用戶手機號',
state tinyint not null default -1 comment '狀態(tài)標(biāo)示:-1:無效‘
create_time timestamp not null comment '創(chuàng)建時間',
primary key(seckill_id,user_phone),
key idx_create_time(create_time)
)
2018-12-01