Skip to the content
  • 首
  • 文
  • 码
  • 工
  • 乐
  • 图
  • 我
JackerKun

月度归档: 2022年1月

An error occurred when the request was processed on the remote computer

  • Post date 1月 14, 2022
  • An error occurred when the request was processed on the remote computer无评论

Azure Web 部署任务失败。(Could not connect to the remote computer…he remote server returned an error: (404) Not Found.

  • Post date 1月 14, 2022
  • Azure Web 部署任务失败。(Could not connect to the remote computer…he remote server returned an error: (404) Not Found.无评论

进入Azure门户?您的应用程序服务?设置?配置?应用程序设置。 在应用程序设置:WEBSITE_WEBDEP […]

C# 获取当前方法的名称空间、类名和方法名称

  • Post date 1月 10, 2022
  • C# 获取当前方法的名称空间、类名和方法名称无评论

1.(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法2.(ne […]

Centos无损调整home root硬盘空间

  • Post date 1月 8, 2022
  • Centos无损调整home root硬盘空间无评论

调整硬盘分区大小想增加root空间,减少home空间。 需要说明的是整个操作需要使用root用户。 1.查看硬 […]

net core中获取用户请求ip地址

  • Post date 1月 7, 2022
  • net core中获取用户请求ip地址无评论

方法一:通过注入来获取 先添加一个依赖注入 在控制器里边使用构造函数注入 获取 方法二:直接获取 但是这两种写 […]

确定dynamic类型的数据对象是否存在某个属性

  • Post date 1月 4, 2022
  • 确定dynamic类型的数据对象是否存在某个属性无评论

.net Core 3.1 Log拦截器

  • Post date 1月 4, 2022
  • .net Core 3.1 Log拦截器无评论

调用方法: 在控制器前面 加上“ [Log]” 属性即可

将DataTable 转换成 模型对象

  • Post date 1月 4, 2022
  • 将DataTable 转换成 模型对象无评论

object result= ModelConvert<你的模型>.ConvertToM […]

.net Core 3.1 webAPI跨域问题解决方案

  • Post date 1月 4, 2022
  • .net Core 3.1 webAPI跨域问题解决方案无评论

在Startup.ConfigureServices中,添加服务 注意:.net Core 3.1版本&nbs […]

.net Core 3.1 实例化 appsettings.json

  • Post date 1月 4, 2022
  • .net Core 3.1 实例化 appsettings.json无评论

AppSettingsObject:和 appsettings.json结构相同的实体 AppSettings […]

文章导航

← Newer posts1 2 Older posts →
© 2025, JackerKun
  Eisai theme by Ivan Fonin