摘要: swagger中生成的注释文件xxx.xml 在linux中后缀名需要大写 \反斜杠,表示转义 /正斜杠 访问图片或者文件不能直接物理地址 在net core 3.1中图片上传好像不能访问到,这个问题后续需要解决?找到好的办法再编辑 阅读全文
posted @ 2020-07-13 17:19 青兰柳 阅读(946) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_32688731/article/details/100924211 控制器中 /// <summary> /// 上传图片 /// </summary> /// <param name="userId"></param> /// <param na 阅读全文
posted @ 2020-07-08 20:22 青兰柳 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 仓储模式一般都有接口IRepository<T>,然后有BaseRepository<T>实现,在实现里都是对单个实体T的增删改查,如果我要对多个实体联合查询,可能要返回多个实体,该如何操作呢? 不能暴露DBContext,那样就没有意义了 思路是在底层写扩展方法 阅读全文
posted @ 2020-07-07 13:47 青兰柳 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1引用包IdentityModel和System.IdentityModel.Tokens.Jwt和Microsoft.AspNetCore.Authorization 2在appsetting设置相关参数(根据自己需求) "JwtSettings": { "PrivateKey": "TheKey 阅读全文
posted @ 2020-07-04 18:07 青兰柳 阅读(355) 评论(0) 推荐(0) 编辑
摘要: https://www.w3xue.com/exp/article/20194/32934.html https://blog.csdn.net/xhl_james/article/details/105343253 https://www.cnblogs.com/it-dennis/p/12170 阅读全文
posted @ 2020-07-02 20:14 青兰柳 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1windows10中没有iis这个选项 控制面板->程序和功能->启用或关闭windows功能把Internet Information Services下需要的勾选,如果没有启动的iis没有相应的显示,那就是这里没有勾选,windows10iis默认只有两个,勾选之后如下图 2 .net cor 阅读全文
posted @ 2020-07-01 09:50 青兰柳 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 目的是熟悉linux的命令以及windows下开发的项目在linux下部署发布,以及用docker发布 阅读全文
posted @ 2020-06-30 09:19 青兰柳 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1 支付宝只能调用外部网络 SetNotifyUrl()这就是支付宝能调用的外部网址 2新建一个Nlog.config (下面两个都行,只是路径不一样) <?xml version="1.0" encoding="utf-8" ?><nlog xmlns="http://www.nlog-proje 阅读全文
posted @ 2020-06-29 18:25 青兰柳 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 先设置 在TortoiseGit ->setting->git->Remote Remote 远端名字 url 远端地址 putty key私钥和git远端公钥对应 1 git commit 提交本地仓库 2pull 拉取 到本地,运行没有报错进行第三步 3push 推送到远端分支 小乌龟中的git 阅读全文
posted @ 2020-06-28 18:53 青兰柳 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #if DEBUG sendResult = 1;#else sendResult = SendSmallMsg(phone, num);#endif debug模式和release 模式 net core 发布到外网时,用release 模式,生成的xxx.xml也要要放上去,不然报错,调了一天这 阅读全文
posted @ 2020-06-28 10:29 青兰柳 阅读(188) 评论(0) 推荐(0) 编辑