摘要:
// 策略类 // 所有跟计算奖金有关的逻辑不再放在环境类Context中,而是分布在各个策略对象中。 let strategies = { // 每个策略对象负责的算法被各自封装在对象内部 "RegularCard": function( deposit ){ return deposit * 0 阅读全文
摘要:
git commit --no-verify -m "xxx" 阅读全文
摘要:
这样编写减少了前后端很多没必要的遍历,以及if判断并最大限度提高了代码的可变通性 额外需要学习的是ORM框架下,如何接收多表(各表结构不同)操作后,sql返回的新结构的临时表问题 表达式引擎用到的依赖 <dependency> <groupId>org.apache.commons</groupId 阅读全文
摘要:
function getLocalTime(){ let year = new Date().getFullYear() let month = new Date().getMonth()+1 let day = new Date().getDate() let hour = new Date(). 阅读全文
摘要:
background: url("@/assets/20001.png") no-repeat center center #f6f6f6; background-size: 100% auto; background-attachment: fixed; 阅读全文
摘要:
WAR包发布项目:端口号是目标发布服务器tomcat的默认端口号(8080)或在tomcat的配置文件(server.xml)中设置的端口号。 JAR包发布项目:端口号是application.yml或application.properties里配置的端口号,也就是这些文件配置了内嵌服务器tomc 阅读全文
摘要:
随机抽取法, 时间复杂度 O(n^2) function randomSortArray(arr) { var stack = []; while (arr.length) { //Math.random():返回 [0,1) 之间的一个随机数 var index = parseInt(Math.r 阅读全文
摘要:
Path execl1 = Paths.get("/训练数据录音流水号.xlsx"); List<Map<String, Object>> list = new ArrayList<>(); ExcelReader reader = ExcelUtil.getReader(execl1.toStri 阅读全文
摘要:
Date to String new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(startTime); Date to DateTime DateTime time = new DateTime(new Date()); Date to Strin 阅读全文
摘要:
一、添加注解 在实体类属性上加如下注解 // 后台返回数据到前端的数据格式 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") // 前台传递参数到后台的数据格式 @DateTimeFormat(pattern = "yyyy- 阅读全文