-
修改sservlet版本查看全部
-
配置的官方地址查看全部
-
mvn archetype:generate -DarchetypeCatalog=internal -DgroupId=com.seckill -DartifactId=seckill -DarchetypeArtifactId=maven-archetype-webapp 這樣寫才能執(zhí)行成功查看全部
-
insert ingnore查看全部
-
聚焦索引 非聚焦索引查看全部
-
mysql engine查看全部
-
天貓的秒殺庫存系統(tǒng)查看全部
-
表設(shè)計查看全部
-
create index查看全部
-
test查看全部
-
當(dāng)主鍵沖突,使用 insert ignore 忽略主鍵沖突異常查看全部
-
開啟駝峰轉(zhuǎn)換查看全部
-
日志相關(guān)的maven依賴的關(guān)系。查看全部
-
<configuration> <!-- 配置全局屬性 --> <settings> <!-- 使用jdbc的getGeneratedKeys獲取數(shù)據(jù)庫自增主鍵值 --> <setting name="useGeneratedKeys" value="true"/> <!-- 使用列別名替換列名 默認(rèn):true --> <setting name="useColumnLabel" value="true"/> <!-- 開啟駝峰命名轉(zhuǎn)換:Table(create_time) -> Entity/(createTime) --> <setting name="mapUnderscoreToCamelCase" value="true"/> </settings> </configuration>查看全部
-
-- 初始化數(shù)據(jù) insert into seckill(name,number,start_time,end_time) values ('1000元秒殺iphone6',100,'2015-11-01 00:00:00','2015-11-02 00:00:00'), ('500元秒殺ipad2',200,'2015-11-01 00:00:00','2015-11-02 00:00:00'), ('300元秒殺小米4',300,'2015-11-01 00:00:00','2015-11-02 00:00:00'), ('200元秒殺紅米note',400,'2015-11-01 00:00:00','2015-11-02 00:00:00');查看全部
舉報
0/150
提交
取消