自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 资源 (2)
  • 问答 (16)
  • 收藏
  • 关注

原创 c#使用MailKit发送邮件

using System;using System.IO;using MailKit.Net.Smtp;using MimeKit;using MimeKit.Text;namespace commom{ public class EmailHelper { //Nuget包管理添加Mailkit /// <summary>...

2018-08-22 09:19:55 5666 6

原创 java时间截取

import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;/** * 日期处理函数 * @author mzj * */public class DateHelp {/*** 截取时间字符串* 日期字符串转化为日期再转化为日期,消除日期字符串的秒* 将更具...

2017-04-06 09:40:11 1953

原创 c# npoi下载导出excel(奇思妙想通过字段属性和反射处理)

using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;using NPOI.SS.Util;using NPOI.XSSF.UserModel;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;namespace Weixiao.Common{ [AttributeU

2021-03-11 10:20:28 369

原创 go使用database/sql访问数据库简单封装

package mzjdbimport ( "database/sql" "fmt" "log" _ "github.com/go-sql-driver/mysql")//DriverType 数据库驱动type DriverType intconst ( mysql DriverType = iota //0 sqlserver //1 sqlserverwindows .

2020-09-15 15:08:54 496

原创 go使用gorm访问数据库

package mainimport ( "fmt" "log" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql")//DriverType 数据库驱动type DriverType intconst ( mysql DriverType = iota //0 mssql //1 oracle .

2020-09-15 15:07:55 1029

原创 g使用excelize简单读写(将读写成struct)

//package excelizeutilpackage mainimport ( "encoding/json" "fmt" "qshapi/utils/time_util" "reflect" "strconv" "strings" "time" "github.com/bitly/go-simplejson" "github.com/360EntSecGroup-Skylar/excelize")//go get github.com/360EntSecGroup.

2020-09-15 09:49:23 1056

原创 go Time操作笔记

package time_utilimport ( "fmt" "time")//TimeFormat 时间格式type TimeFormat intconst ( timeTeplate1 TimeFormat = iota timeTeplate2 timeTeplate3 timeTeplate4 timeTeplate5)func (t TimeFormat) String() string { switch t { case 0: return "20.

2020-09-14 14:35:59 125

原创 go操作json文件

package utilimport ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "os")//JSONRead 读取json文件返回stringfunc JSONRead(path string) string { f, err := os.Open(path) if err != nil { log.Fatal("读取文件错误", err) } content, err := ioutil.ReadAll(f).

2020-06-17 11:59:44 367

原创 golang初学数据库连接(mysql,sqlserver,oracle)

package utilimport ( "database/sql" "encoding/json" log "erpgo/util/logUtil" "fmt" "reflect" "time" _ "github.com/denisenkom/go-mssqldb" //这个驱动可以连接sqlserver2019,但是好像不能够连接sql server 2008一下 //编码转换 _ "github.com/go-sql-driver/mysql" //mysql 数据库.

2020-06-17 11:56:53 1303

原创 c#请求https接口报错基础连接已经关闭: 发送时发生错误

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

2020-03-04 09:16:09 1714

原创 .net Mvc过滤器处理请求参数(去除字符串的多余空格)适用于解密等操作

using Newtonsoft.Json;using Newtonsoft.Json.Linq;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Http.Controllers;using System.Web.Mvc;//usin...

2019-12-10 09:01:24 939

原创 .net Core log4net日志

.net Core 操作日志简单使用:只能在控制台中打印```csharp public class ValuesController : ControllerBase { ILogger<ValuesController> logger; //构造函数注入Logger public ValuesController(ILogger<ValuesCon...

2019-12-03 11:06:45 306

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

-- mzj 2019-09-18 贷后监控设置sql语句-- sqlServer版本-- 删除存储过程if exists (select * from dbo.sysobjects where id = object_id(N'pro_AddColum') and OBJECTPROPERTY(id, N'IsProcedure') = 1)BEGIN drop procedure ...

2019-09-19 17:55:41 1264

原创 .net读取类注解和属性生成固定实体列表(主要用来构建sql语句和构建常用简单表格)

public class ModelToJson<T> where T:class{ public ClassModel GetClassModel(T t) { var result = new ClassModel(); var prs = typeof(T).GetProperties(); ...

2019-07-16 18:26:02 310

原创 Quartz.net简单操作

1.nuget添加Quartz.netusing Quartz;using Quartz.Impl;using Quartz.Impl.Triggers;using System;using System.Linq;using System.Text;using System.Threading.Tasks;namespace comman{ /// <su...

2019-07-01 17:13:34 132

原创 c# http请求

using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Text;using System.Threading.Tasks;namespace command{ public class HttpHelpe...

2019-07-01 11:08:33 294

原创 myexclipce2018破解遇到的坑

安装的版本是myeclipce官网下载的2018版本,然后需要破解,就在网上搜索各种破解包,试了好多都不行,首先发现自己安装的是jdk10,所以破解工具是压根打不开的,1卸载掉jdk10(不知道为什么,我同时又安装了jdk8,配置环境变量为jdk8,但是查看java的版本也是jdk10,卸载jdk10后再查看就没问题了)然后就按照破解工具破解就行了,很多破解工具是没用的,个人测试了...

2018-08-26 22:09:59 387

原创 OkHttp3练习util

//OkHttp3练习util // compile ‘com.squareup.okhttp3:okhttp:3.4.1’ import android.Manifest; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.os.Build; import a

2017-09-25 16:36:36 261

原创 Android之DDMS无法查看/data/data目录 Mac

在mac 中安装android studio 的虚拟机,打开DDMS时无法查看data目录,有许多前辈都说要修改adb什么的,我都试过了还是不行,或许可能是哪里姿势不正确,最后在打算放弃的时候无意间修改了一下虚拟机的api竟然能读写了,虽然不知道为什么,但也记录记录。

2017-09-25 10:27:04 400

原创 android HttpUrlConnection连接笔记

import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.os.Handler;import android.os.Message;import java.io.BufferedReader;import java.io.DataOutputStream;import jav

2017-09-25 10:22:16 185

原创 Android Studio mac 虚拟机无法读写遇到的坑

网上也有许多DDMS无法读取虚拟机data的解决方法,直接百度Android之DDMS无法查看/data/data目录 小生也按照前辈们的解决办法去配置了,but好像也没有什么用,最后修改了虚拟机的版本api就可以了,就记录下笔记初学者坑太多了

2017-09-25 10:12:16 367

原创 android Notifaction学习笔记

最近学习android,notifaction的很多方法参数都已经过期了,虽然能用但是作为一个强迫症患者,看到一个删除线总是不爽的,下面是我自己学习的时候随便归纳的import android.app.Notification;import android.app.NotificationManager;import android.app.PendingIntent;import

2017-09-07 18:46:48 454

原创 android selector学习笔记

selector属性:android:state_pressed是否点击android:state_focused焦点获取android:state_selected是否选择android:state_checkablecheckbox是否可用android:state_checkedcheckbox是否选中android:state_enabled

2017-09-06 10:31:12 147

原创 andriod item内checked的setOnClickListener事件和setOnItemClickListener事件冲突解决办法

1.最外层添加属性android:descendantFocusability="blocksDescendants"2.按钮上添加三个属性:android:focusable="false"android:checked="false"android:focusableInTouchMode="false"

2017-09-05 10:59:38 1248 1

招行民生银企直联demo

个人学习使用,简单的对接银行的接口,发现都是java版本的,写个.net的demo记录下,简单的对接了下招商银行,主要有付款和交易流水查询等基本的接口开发

2019-01-29

酒店管理_stu

简单的酒店网页,供学习使用,商业还有待拓展

2017-06-03

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除