chenxin's blog
identityserver4数据持久化
2022-06-12 20:18
消息队列除了可用于异步处理,流量削峰,还可以用于应用解偶
2022-06-12 19:42
有时候发现用户无法执行命令是可以查看是否指定了默认shell程序
2022-06-10 19:57

解决 IIS 下部署 react 单页应用,刷新浏览器后出现404问题。

解决方案如下

1. 安装 IIS URL Rewrite 模块。

2 iis 设置index.html 为默认页面

3 web.config 文件中增加 以下配置。

"1.0"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="React Routes" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
                    conditions>
                    <action type="Rewrite" url="/" />
                rule>
            rules>
        rewrite>
    system.webServer>
configuration>
2022-06-10 10:59

解决无法安装identityserver4 模板项目的办法就是指定版本号

dotnet new --install IdentityServer4.Templates::4.0.1

https://www.nuget.org/packages/IdentityServer4.Templates

2022-06-09 21:30
tcpdump 在linux上抓包是个不错的选择。
2022-06-09 21:22

IIS / asp.net mvc /asp.net core 跨域的各种方法。

2022-06-08 13:35

C# 中有lock关键字来实现共享资源的锁定,读写锁则有:ReaderWriteerLock, 只读成员则可通过 static readonly 来创建,该种方法还可以用于实现线程安全的单利模式,

当然 C# 中也有ThreadLocal 类,用于实现线程间数据隔离,线程安全集合则有: CocurrentBag、ConcurrentDictionary等等。

另外分布式环境下:zookeeper也是可以和C#一起使用来实现分布式锁的,有相应的zookeeper C#客户端库。

2022-06-08 08:44
{{item.shareTime}}
首页 上一页 21 22 23 24 25 下一页 末页 共36页
正在加载,请稍后... 已经到底啦~~~
文章归档 网站地图 闽ICP备2020021271号-1 百度统计