摘要:
1.在服务层的类中获取依赖IConfiguration config,它会自动获得json内容 //appsetting.json { "Wx": { "Appid": "wx1a1ddfe11f25528a" } } //WxService类的构造函数 private readonly strin 阅读全文
posted @ 2025-12-21 23:11
爱晒太阳的懒猫。。
阅读(4)
评论(0)
推荐(0)
摘要:
.net 8配置Autofac var builder = WebApplication.CreateBuilder(args); // Add services to the container. //autofac注册到builder builder.Host.UseServiceProvide 阅读全文
posted @ 2025-12-21 20:48
爱晒太阳的懒猫。。
阅读(3)
评论(0)
推荐(0)

浙公网安备 33010602011771号