在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)標示:-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)標示:-1:無效‘
create_time timestamp not null comment '創(chuàng)建時間',
primary key(seckill_id,user_phone),
key idx_create_time(create_time)
)
2018-12-01
c3p0配置文檔: https://www.mchange.com/projects/c3p0/#configuration_properties
2018-11-20
出現(xiàn)java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyPreparedStatement.isClosed()Z is abstract報錯
解決方案:因為c3p0版本過低,我是0.9.1.2,換成0.9.5.2即可
解決方案:因為c3p0版本過低,我是0.9.1.2,換成0.9.5.2即可
2018-11-19
記:用maven創(chuàng)建的項目默認是老的2.3版本,第一步要修改servlet的版本為如3.0版本
2018-10-13