会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
兴趣就是天赋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2022年12月15日
WebApi Autofac依赖注入配置
摘要: public class AutofacConfig { /// <summary> /// IOC注册 /// </summary> public static void Register() { ContainerBuilder builder = new ContainerBuilder();
阅读全文
posted @ 2022-12-15 17:48 兴趣就是天赋
阅读(34)
评论(0)
推荐(0)
2022年12月10日
个人总结理想DDD分层架构
摘要: 1、YourName.Web ==>表现层 Controllers==>控制器 (只负责直接调用应用层处理业务) Filters==>各种过滤器 ……==>其他分类文件 2、YourName.Application==>应用层(实现表现层所需的业务) Base==>父服务文件夹 Dtos=>以服务方
阅读全文
posted @ 2022-12-10 17:17 兴趣就是天赋
阅读(105)
评论(0)
推荐(0)
2022年12月7日
asp.net身份信息多站点共享互认
摘要: 只需要在web.config中设置machineKey即可 <!--生成网址:https://www.fishlee.net/Tools/MachineKeyGenerator--><machineKey validationKey="9BD7FDEC53333A739CFBF4798CDBB9E9
阅读全文
posted @ 2022-12-07 14:41 兴趣就是天赋
阅读(70)
评论(0)
推荐(0)
2022年11月11日
IIS http强制重定向到https
摘要: 首先安装 URL Rewrite 模块 ,下载网址 http://www.iis.net/downloads/microsoft/url-rewrite 安装完成后, 在网站根目录下建立web.config 文件,文件内容如下 <?xml version="1.0" encoding="UTF-8"
阅读全文
posted @ 2022-11-11 08:48 兴趣就是天赋
阅读(607)
评论(0)
推荐(0)
2022年11月10日
SSL证书格式转换
摘要: 输入转换地址,用文本文档打开文件输入对应内容,点击转换即可(https://www.sslaaa.com/tools/crt_to_pfx?from_wecom=1)改网站还有其他格式转换
阅读全文
posted @ 2022-11-10 20:31 兴趣就是天赋
阅读(80)
评论(0)
推荐(0)
2022年11月7日
C# 验证码2
摘要: /// <summary> /// 验证码生成 /// </summary> public class VerificationCodeHelper { //定义颜色 private static Color[] colors = { Color.Black, Color.Red, Color.Da
阅读全文
posted @ 2022-11-07 09:20 兴趣就是天赋
阅读(16)
评论(0)
推荐(0)
C#验证码
摘要: /// <summary> ///验证码 /// </summary> public class VerifyCode { /// <summary> /// 验证码字体大小 ( 为了显示扭曲效果,默认 40 像素,可以自行修改 ) /// </summary> int FontSize = 40;
阅读全文
posted @ 2022-11-07 09:12 兴趣就是天赋
阅读(20)
评论(0)
推荐(0)
2022年11月4日
WebApi Swagger使用
摘要: 一、配置代码 SwaggerConfig.cs using Swashbuckle.Application; using Swashbuckle.Swagger; using System; using System.Collections.Concurrent; using System.Coll
阅读全文
posted @ 2022-11-04 12:08 兴趣就是天赋
阅读(97)
评论(0)
推荐(0)
2022年10月28日
Newtonsoft.Json将可空类型转换为空字符串(支持所有类型)
摘要: 第一步:json自定义解析协议 /// <summary> /// json自定义解析协议 /// </summary> public class SpecialJsonContractResolver : DefaultContractResolver { protected override I
阅读全文
posted @ 2022-10-28 11:58 兴趣就是天赋
阅读(482)
评论(0)
推荐(0)
2022年10月14日
C#利用IKVM调用JAVA方法
摘要: 第一步:添加java类 第二步:构建项目 第三步:生成jar包(在构建好的文件中执行下列命令) 方式1:jar cvf test.jar -C com/ . 方式2:jar cf test.jar TripleDES.class 第四步:执行命令生成dll文件 ikvmc -out:IKVM.dll
阅读全文
posted @ 2022-10-14 10:55 兴趣就是天赋
阅读(254)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告