03 2019 档案
摘要:今天遇到一个需求,需要计算数据表中两个时间的差值,并取对应的秒数 一开始我是用 time_to_sec(timediff (time1,time2)) 但是这样会有一个问题,,,时间短的用这个计算没有问题 但如果时间差比较大,超出timediff 的限制(timediff最大值: 838:59:59
阅读全文
摘要:spring项目一些简单的定时任务可以通过@Schedule注解来实现,具体配置如下 在applicationContext.xml文件中增加配置 1.引入task约束 xmlns:task="http://www.springframework.org/schema/task" 2.schemaL
阅读全文
摘要:Can't update: no tracked branch... 是因为git不知道要从哪个远程分支更新代码,所以需要设置一下 git branch --set-upstream-to=<remote name>/<branch name> <local branch name> 例如:git
阅读全文

浙公网安备 33010602011771号