摘要: 2024年7月9日 可以适当提高StreamReader的bufferSize会有一点小提升 这是我目前使用的方案,有什么更优的方案欢迎大家分享 使用StreamReader和StreamWriter进行输入和输出+自己解析字符串,例如P1253 public class P1253 { publi 阅读全文
posted @ 2024-06-25 11:39 苏仙一 阅读(87) 评论(0) 推荐(0)
摘要: 记录一些自己常用的k8s命令获取pod列表kubectl get pod -n default包含pod分配在哪台服务器kubectl get pod -owide查看执行pod的详细信息,可以用来查看pod错误信息kubectl describe pod podname查看集群的节点kubectl 阅读全文
posted @ 2022-06-08 18:40 苏仙一 阅读(61) 评论(0) 推荐(0)
摘要: 结论:使用ValueTuple会返回null,Tuple则不会,默认(string,string)这种类型也是ValueTuple 验证 调用方 被调用方 阅读全文
posted @ 2022-06-08 18:38 苏仙一 阅读(34) 评论(0) 推荐(0)
摘要: 方案1:循环依赖的服务不直接注入,而是改成用到的地方从容器中获取 public class OrderInfoService { private IServiceProvider _serviceProvider; public OrderInfoService(IServiceProvider s 阅读全文
posted @ 2022-05-23 16:47 苏仙一 阅读(1180) 评论(0) 推荐(0)
摘要: 这里用Newtonsoft举例 1、nuget添加引用 Newtonsoft.Json Microsoft.AspNetCore.Mvc.NewtonsoftJson 2、.net5及以下在Startup.net6在Program在AddControllers后添加AddNewtonsoftJson 阅读全文
posted @ 2022-03-31 20:33 苏仙一 阅读(527) 评论(0) 推荐(0)
摘要: 通过heml安装,version指定版本 helm也是执行yaml文件,kubectl能连接到集群 heml文件结构 安装heml wget https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz tar -zxvf helm-v3.3.4-linux- 阅读全文
posted @ 2022-03-22 17:00 苏仙一 阅读(229) 评论(0) 推荐(0)
摘要: 1.在插件管理中安装插件Publish over SSH 2.在系统管理=>系统配置中找到Publish over SSH并配置 注意Remote Directory为全局的目标服务器目录,后面具体配置时的目录是基于这个目录的 3.在构建步骤中添加 具体配置 Source files是源文件目录,* 阅读全文
posted @ 2022-03-22 16:56 苏仙一 阅读(616) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示