原创 sqlserver+mysql 添加字段判斷是否存在(存在不添加)

-- mzj 2019-09-18 貸後監控設置sql語句 -- sqlServer版本 -- 刪除存儲過程 if exists (select * from dbo.sysobjects where id = object_id(N'

原创 go操作json文件

package util import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "os" ) //JSONRead 讀取json文件返回string func

原创 golang初學數據庫連接(mysql,sqlserver,oracle)

package util import ( "database/sql" "encoding/json" log "erpgo/util/logUtil" "fmt" "reflect" "time" _ "gith

原创 .net Core log4net日誌

.net Core 操作日誌 簡單使用:只能在控制檯中打印 ```csharp public class ValuesController : ControllerBase { ILogger<ValuesContro

原创 .net讀取類註解和屬性生成固定實體列表(主要用來構建sql語句和構建常用簡單表格)

public class ModelToJson<T> where T:class{ public ClassModel GetClassModel(T t) { var res

原创 c#請求https接口報錯基礎連接已經關閉: 發送時發生錯誤

 .net 4.0 設置: ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;  .net 4.5 設置: System.Net.ServicePointM

原创 .net Mvc過濾器處理請求參數(去除字符串的多餘空格)適用於解密等操作

using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq;

原创 c# http請求

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Te

原创 Quartz.net簡單操作

1.nuget添加Quartz.net using Quartz; using Quartz.Impl; using Quartz.Impl.Triggers; using System; using System.Linq; usin

原创 OkHttp3練習util

//OkHttp3練習util // compile ‘com.squareup.okhttp3:okhttp:3.4.1’ import android.Manifest; import android.content.pm.Pa

原创 myexclipce2018破解遇到的坑

安裝的版本是myeclipce官網下載的2018版本, 然後需要破解,就在網上搜索各種破解包,試了好多都不行, 首先發現自己安裝的是jdk10,所以破解工具是壓根打不開的, 1卸載掉jdk10(不知道爲什麼,我同時又安裝了jdk8,配置環

原创 android HttpUrlConnection連接筆記

import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.os.Mes

原创 c#使用MailKit發送郵件

using System; using System.IO; using MailKit.Net.Smtp; using MimeKit; using MimeKit.Text; namespace commom { publi

原创 andriod item內checked的setOnClickListener事件和setOnItemClickListener事件衝突解決辦法

1.最外層添加屬性 android:descendantFocusability="blocksDescendants" 2.按鈕上添加三個屬性: android:focusable="false" android:checked=

原创 Android之DDMS無法查看/data/data目錄 Mac

在mac 中安裝android studio 的虛擬機,打開DDMS時無法查看data目錄,有許多前輩都說要修改adb什麼的,我都試過了還是不行,或許可能是哪裏姿勢不正確,最後在打算放棄的時候無意間修改了一下虛擬機的api竟然能讀寫了,雖