摘要: 1、搭建runner 镜像:gitlab/gitlab-runner:latest 2、注册runner,输入gitlab-runner register命令 root@runner-6f49c57c49-5889v:/# gitlab-runner register Runtime platfor 阅读全文
posted @ 2025-02-14 14:42 Cody& 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 需求:Oracle迁移至Postgresql数据库,结构相对简单,没有view、function、procedure .etc 比较使用工具(开源): 1、pgloader 2、ora2pg 3、Dbeaver 首选方案是pgloader,但失败了,最终选择了ora2pg来迁移 以下是我的实践过程: 阅读全文
posted @ 2025-02-05 11:29 Cody& 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 2024/11/14 求助,为什么“targetRoundId1”引发了类型“System.NullReferenceException”的异常 代码: Dictionary<string, Dictionary<string,string>> exchangeRateDict1 = new (); 阅读全文
posted @ 2024-11-14 14:12 Cody& 阅读(30) 评论(0) 推荐(0) 编辑
摘要: angular在单元测试时执行ng test --no-watch --code-coverage报异常如下: ERROR [karma-server]: UncaughtException: Error: spawn UNKNOWN at ChildProcess.spawn (node:inte 阅读全文
posted @ 2024-10-10 11:08 Cody& 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 框架:.Net 6 、webapi package:GitLabApiClient 定义body参数DTO,不同event有不同的参数,具体可参考gitlab文档:https://docs.gitlab.com/ee/user/project/integrations/webhook_events. 阅读全文
posted @ 2024-03-12 15:07 Cody& 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 项目以net8建立为例子(net6也通用),使用Autofac实现构造函数注入、属性注入两种。 Autofac (第三方) 1、引用以下package Autofac Autofac.Extensions.DependencyInjection Microsoft.Extensions.Depend 阅读全文
posted @ 2024-02-25 11:09 Cody& 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: 错误信息:(java编译文件版本与运行环境版本不一致导致) Using the .NET Core version of the Scanner for MSBuild Post-processing started. Calling the SonarScanner CLI... Error: L 阅读全文
posted @ 2024-01-18 16:22 Cody& 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 在for循环里,有8w数据,结果需要10+分钟才遍历完(生产环境下),结果发现导致耗时的代码如下 try { ritem.Qty = Convert.ToDecimal(value); } catch(Exception e) { Logger.Info(e.ToString()); ritem.Q 阅读全文
posted @ 2023-12-21 14:29 Cody& 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 在html的select元素添加了onchange事件,changeContent方法也在当前html下。 <select id="changeLanguage" class="form-control input-lg" asp-for="language" asp-items="Model.su 阅读全文
posted @ 2023-12-06 09:16 Cody& 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 在ubuntu(18.04)运行OpenCvSharp4(4.6.0)报错如下: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMJAMSQJ3RO8", Request id "0HMJAMSQJ3RO8:00000005": A 阅读全文
posted @ 2022-07-23 10:50 Cody& 阅读(2584) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示