说明:SpringBoot使用@Scheduled创建定时任务 package com.lch.task; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.sc ...
分类:
其他好文 时间:
2021-06-28 17:53:36
阅读次数:
0
function a1() { return new Promise(o => { console.log("a1") o('a1_1') }) } async function a2() { const _a2 = await a1() console.log(_a2); console.log( ...
分类:
其他好文 时间:
2021-06-28 17:45:59
阅读次数:
0
public void startC138() { new Thread(() -> { try { Thread.sleep(10000); String killredis = "/home/bjlthy/gym/code/killredis.sh"; Process ps = Runtime. ...
分类:
编程语言 时间:
2021-06-28 17:45:28
阅读次数:
0
export function chooseWXPay(params: wx.ChooseWXPayConfig) { return new Promise<{ status: 'success' | 'error' | 'cancel'; result?: string; message?: st ...
分类:
微信 时间:
2021-06-28 17:44:33
阅读次数:
0
工作中经验遇到搭建时间服务器的任务,如何搭建网上找的例子总是有些许问题,如下自己动手操作一遍总结一下,方便自己和后来人直接上手使用。 准备工作:192.168.0.1 服务端: ntp服务器192.168.0.2 客户端: 定时与192.168.0.1的服务器同步时间一、服务端操作1、查看操作系统版 ...
分类:
系统相关 时间:
2021-06-25 17:16:15
阅读次数:
0
# 以t模式为基准操作# 1.r:只读模式:文件不存在时报错,文件存在时指针跳到开始位置# input_username = input("username:")# input_password = input("password:")## with open('a.txt', mode='rt', ...
分类:
编程语言 时间:
2021-06-25 17:15:33
阅读次数:
0
静态代理模式 为什么要学习代理模式? 因为这就是SpringAOP的底层! 面试: 【SpringAOP和SpringMVC】 静态代理 角色分析: 抽象的角色:一般用接口或者抽象类解决 - — 租房 真实的角色:被代理的角色 —- 房东 代理角色:代理真实角色,代理真实角色后,我们一般做一些附属操 ...
分类:
其他好文 时间:
2021-06-25 17:08:28
阅读次数:
0
laravel 打印sql语句非常的麻烦而且不方便,所以就想弄一个sql日志来方便调试排除 首先到 EventServiceProvider.php (监听文件)里 赋值日志开关常数 define('SQL_LOG', env('SQL_LOG', false));然后到 $listen 里增加 S ...
分类:
数据库 时间:
2021-06-25 17:07:22
阅读次数:
0
分享一个IDEA 免费注册码分享站点 http://idea.medeming.com/jets/ ...
分类:
其他好文 时间:
2021-06-25 17:03:18
阅读次数:
0
这个错误的出现一般是SpringBoot的启动类(类名上面有@SpringBootApplication注解 )与controller包不在同一个目录下,解决方案就是把启动类和controller包放在同目录下就可以啦。 这个错误出现需要将Controller层中的@Controller注解改为@R ...
分类:
移动开发 时间:
2021-06-25 16:59:24
阅读次数:
0