![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.NET工作经验
浅忆寒江
...
展开
-
ServiceStack.Redis 使用PooledRedisClientManager连接池 访问带密码redis 问题记录
password@ip:port不可行获取客户端后设置Password 即可client.Password = RedisPassWord; private static PooledRedisClientManager CreateManager(string[] readWriteHosts, string[] readOnlyHosts) { //WriteServerList:可写的Redis链接地址。 //ReadServ原创 2020-07-23 14:51:40 · 2498 阅读 · 6 评论 -
访问静态资源下中文名的图片文件404
需求描述:用直接访问静态资源的方式访问一些pdf和图片文件(文件放在项目的webapp下,跟WEB_INF同级)。问题描述:文件名为中文时,请求404解决办法:本地测试,因本地使用maven tomcat插件,启动tomcat加参数 -Dmaven.tomcat.uriEncoding=UTF-8启动命令为:tomcat7:run -Dmaven.tomcat.uriEncoding=UTF-8错误描述:通过xftp工具(未勾选使用UTF-8编码)将文件上传到linux服务器中,导致上传到l转载 2020-05-21 14:51:04 · 1466 阅读 · 0 评论