中間6位為自增序列
String idStr = String.format("%06d", sequence);
String idStr = String.format("%06d", sequence);
2018-12-28
JAVA8這個日期的方法很快啊。
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
絕了,官方文檔有空格,找了半天錯,刪掉空格就好了。這些錯誤真是莫名其妙,eclipse和Intellij是一家人吧
2018-12-26
`price` decimal(10,2) DEFAULT NULL,
自動生成的實體類,price類型就是BigDecimal,不是Long:
private BigDecimal price;
自動生成的實體類,price類型就是BigDecimal,不是Long:
private BigDecimal price;
2018-12-26
pom.xml中dependency
spring-boot-starter-web
已經包含了hibernate-validator這個依賴,可以不用再寫一次
spring-boot-starter-web
已經包含了hibernate-validator這個依賴,可以不用再寫一次
2018-12-25
第一次看到這樣的驗證方式。通常使用注解,寫在controller里。
//@Valid UserModel userModel, BindingResult bindingResult
//@Valid UserModel userModel, BindingResult bindingResult
2018-12-25