摘要: 阅读全文
posted @ 2024-01-25 20:46 电器小君子 阅读(18) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 上传本地服务器 /// </summary> /// <param name="environment"></param> /// <returns></returns> [HttpPost("/UpLoadImageFiles2")] public async 阅读全文
posted @ 2022-06-05 11:59 电器小君子 阅读(81) 评论(0) 推荐(0) 编辑
摘要: private LockUtils(){ } public static boolean lock(String lockName){//lockName可以为共享变量名,也可以为方法名,主要是用于模拟锁信息 System.out.println(Thread.currentThread() + " 阅读全文
posted @ 2022-05-31 22:18 电器小君子 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 前台简单构造: window.location.search.replace("?","") 获取页面传值zs或者ls <html> <head> <script type="text/javascript"> const webSochet= new WebSocket('ws://localho 阅读全文
posted @ 2022-05-16 19:10 电器小君子 阅读(470) 评论(0) 推荐(1) 编辑
摘要: 引用 Quratz 创建类:使用作业 /// 1.创建作业 /// </summary> public class Myjob : IJob { public async Task Execute(IJobExecutionContext context) { //获取JobDtail的descri 阅读全文
posted @ 2022-05-15 21:28 电器小君子 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1.安装Quratz using Quratz using Quratz.Core using Quratz.impl 第一步:创建作业 第二步:创建调度器 第三步:创建作业细节 第四步:创建触发器 第五步:调度器负责调度作业,关联触发器 public class WeatherForecastCo 阅读全文
posted @ 2022-05-10 23:47 电器小君子 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 首先创建项目Worker Service 然后引用包Microsoft.Extensions.Hosting.WindowsServices 修改program项 public static IHostBuilder CreateHostBuilder(string[] args) { var ho 阅读全文
posted @ 2022-05-10 19:03 电器小君子 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 建立.net windows服务的项目 在OnStart中使用定时任务 protected override void OnStart(string[] args) { Timer timer = new Timer(); timer.Interval = 5 * 1000; timer.Elaps 阅读全文
posted @ 2022-05-09 23:58 电器小君子 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1.首先创建类继承 Attribute, IAuthorizationFilter Attribute:为了使用特性 IAuthorizationFilter:监测过滤的接口 public class MyAuthAttribute : Attribute, IAuthorizationFilter 阅读全文
posted @ 2022-05-09 13:08 电器小君子 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 需要的类 安装包 QRCoder 1. QRCodeHelper 二维码帮助类 namespace SmartGardon.Common.QRCode { /// <summary> /// 二维码帮助类 /// </summary> public class QRCodeHelper { /// 阅读全文
posted @ 2022-05-06 14:43 电器小君子 阅读(301) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示