• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






java小兵

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

2022年1月29日

dotnetcore EF (entity column definition, sql statement logging)
摘要: class Bird { public int Number { get; set; } public string Name { get; set; } public int Age { get; set; } } class BirdConfig : IEntityTypeConfigurati 阅读全文
posted @ 2022-01-29 08:51 .net一小兵 阅读(41) 评论(0) 推荐(0)
 

2022年1月17日

dotnet logging serilog support
摘要: add serilog packages dotnet add package serilog.aspnetcore dotnet add package Serilog.Sinks.Console add serilog support using Serilog; using Serilog.F 阅读全文
posted @ 2022-01-17 18:16 .net一小兵 阅读(74) 评论(0) 推荐(0)
 

2022年1月14日

.net core 使用IOptionsXXX读取配置
摘要: add following packages <ItemGroup> <PackageReference Include="microsoft.extensions.configuration" Version="6.0.0" /> <PackageReference Include="micros 阅读全文
posted @ 2022-01-14 10:43 .net一小兵 阅读(185) 评论(0) 推荐(0)
 

2022年1月6日

.NET Core 实现动态代理 AOP
摘要: AOP实现 class DynamicProxy<T> : DispatchProxy { public T? decorated { get; set; }//目标类 public Action<object?[]?>? _beforeAction { get; set; } // 动作之后执行 阅读全文
posted @ 2022-01-06 12:19 .net一小兵 阅读(398) 评论(0) 推荐(0)
 

2021年12月8日

docker - Dockerfile
摘要: 生成镜像 docker build . -t my-nginx docker images REPOSITORY TAG IMAGE ID CREATED SIZE localhost/my-nginx maintainer 712befd1ad83 13 minutes ago 24.7 MB d 阅读全文
posted @ 2021-12-08 18:51 .net一小兵 阅读(71) 评论(0) 推荐(0)
 

2021年11月28日

k8s - 部署应用
摘要: 更新/etc/exports并重启nfs/rpcbind服务,使之能共享新路径 # 在master上sudo vi /etc/exports /home/bigcat/k8s/beiqin 192.168.121.150/24(rw,sync) sudo systemctl restart nfs. 阅读全文
posted @ 2021-11-28 19:28 .net一小兵 阅读(131) 评论(0) 推荐(0)
 

2021年11月27日

k8s - 用Rinetd对外tomcat-service
摘要: 重新部署tomcat-service # tomcat-service.yaml apiVersion: v1 kind: Service metadata: name: tomcat-service labels: app: tomcat-service spec: # type: NodePor 阅读全文
posted @ 2021-11-27 18:51 .net一小兵 阅读(48) 评论(0) 推荐(0)
 

2021年11月26日

k8s - 集群文件共享
摘要: 删除原tomcat-deploy kubectl delete deployment tomcat-deploy 修改tomcat-deployment部署文件,增加mount属性 apiVersion: extensions/v1beta1 kind: Deployment metadata: n 阅读全文
posted @ 2021-11-26 14:54 .net一小兵 阅读(199) 评论(0) 推荐(0)
 
安装nfs(network file system)服务
摘要: 安装nfs包 yum install -y nfs-utils rpcbind 在master节点(192.168.121.150)设置共享目录 cd /usr/local mkdir -p /data/www-data 将以下内容写入/etc/exports /usr/local/data/www 阅读全文
posted @ 2021-11-26 13:35 .net一小兵 阅读(69) 评论(0) 推荐(0)
 
k8s - 部署tomcat-service (NodePort-通过节点向外提供服务)
摘要: 部署tomcat-service到k8s中 kubectl create -f tomcat-service.yaml tomcat-service.yaml apiVersion: v1 kind: Service metadata: name: tomcat-service labels: ap 阅读全文
posted @ 2021-11-26 13:04 .net一小兵 阅读(146) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页