中間6位為自增序列
String idStr = String.format("%06d", sequence);
String idStr = String.format("%06d", sequence);
2018-12-28
JAVA8這個(gè)日期的方法很快啊。
10:02:45.002 [main] INFO com.example.miaosha.service.impl.OrderServiceImpl - start2====
10:02:45.045 [main] INFO com.example.miaosha.service.impl.OrderServiceImpl - nowFomater=20181228
10:02:45.002 [main] INFO com.example.miaosha.service.impl.OrderServiceImpl - start2====
10:02:45.045 [main] INFO com.example.miaosha.service.impl.OrderServiceImpl - nowFomater=20181228
2018-12-28
$("#itemDetail"+itemVo.id).on("click", (e) => {
window.location.href = "getItem.html?id="+$(this).data("id");
})
window.location.href = "getItem.html?id="+$(this).data("id");
})
2018-12-27
厲害 我每次調(diào)試完都不知道怎么改過(guò)來(lái)錯(cuò)誤
2018-12-26
絕了,官方文檔有空格,找了半天錯(cuò),刪掉空格就好了。這些錯(cuò)誤真是莫名其妙,eclipse和Intellij是一家人吧
`price` decimal(10,2) DEFAULT NULL,
自動(dòng)生成的實(shí)體類,price類型就是BigDecimal,不是Long:
private BigDecimal price;
自動(dòng)生成的實(shí)體類,price類型就是BigDecimal,不是Long:
private BigDecimal price;
2018-12-26
pom.xml中dependency
spring-boot-starter-web
已經(jīng)包含了hibernate-validator這個(gè)依賴,可以不用再寫一次
spring-boot-starter-web
已經(jīng)包含了hibernate-validator這個(gè)依賴,可以不用再寫一次
2018-12-25
第一次看到這樣的驗(yàn)證方式。通常使用注解,寫在controller里。
//@Valid UserModel userModel, BindingResult bindingResult
//@Valid UserModel userModel, BindingResult bindingResult
2018-12-25
可能是老師當(dāng)時(shí)的版本和現(xiàn)在的不一樣,我的也是處理不到
2018-12-25