09 2017 档案

log4j记录日志 和 webAppRootKey关系
摘要:今天发现一个问题,就是后台从某天开始不再记录日志了,最后发现是 webAppRootKey 的 value 的值必须要和log4j的注入变量要一致。 如下:web.xml文件的 webAppRootKey 节点:value = Mes 但是 log4j.properties 注入的变量 = weba 阅读全文

posted @ 2017-09-28 16:08 jonney_wang 阅读(164) 评论(0) 推荐(0)

ReSharper+Devexpress 删除光标之后的换行
摘要:官方链接 阅读全文

posted @ 2017-09-26 16:26 jonney_wang 阅读(203) 评论(0) 推荐(0)

ServiceHelper
摘要:1 public class ServiceHelper 2 { 3 private static string _baseUrl = $@"http://{Config.Instance.MesServerUrl}/"; 4 private static string _sessionHeader; 5 pub... 阅读全文

posted @ 2017-09-22 17:36 jonney_wang 阅读(380) 评论(0) 推荐(0)

log4net.xml
摘要:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 阅读全文

posted @ 2017-09-22 17:35 jonney_wang 阅读(343) 评论(0) 推荐(0)

JsonHelper
摘要:public static class JsonHelper { public static string ToJson(this object obj) { var str = Newtonsoft.Json.JsonConvert.SerializeObject(obj, Newtonsoft. 阅读全文

posted @ 2017-09-22 17:33 jonney_wang 阅读(162) 评论(0) 推荐(0)

webHttpBinding
摘要:1 [ServiceContract] 2 public interface IHanger 3 { 4 /// 5 /// 根据请求的用户的所属的组织,决定工单发布到哪个吊挂产线 6 /// 7 /// 8 /// 9 /// 10 ... 阅读全文

posted @ 2017-09-22 17:32 jonney_wang 阅读(392) 评论(0) 推荐(0)

wcf 基本配置
摘要:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ... 阅读全文

posted @ 2017-09-22 17:30 jonney_wang 阅读(153) 评论(0) 推荐(0)

Config 代码片段
摘要:1 class Config 2 { 3 private static Config _instance = null; 4 5 public static Config Instance 6 { 7 get 8 { 9 if (_i... 阅读全文

posted @ 2017-09-22 17:27 jonney_wang 阅读(202) 评论(0) 推荐(0)

导航