- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 itext导出pdf
1、引入jar包 <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.3.0</version>...
2019-05-24 11:21:58
151
转载 easypoi导出excel公共类
1、引用easypoijar<!--easypoi开始--> <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-base</artifactId> <version>3.0.1</version>...
2019-05-24 10:02:51
277
原创 spring工具类 方便在非spring管理环境中获取bean
1、类定义/** * spring工具类 方便在非spring管理环境中获取bean * * @author ruoyi */@Componentpublic final class SpringUtils implements BeanFactoryPostProcessor { /** Spring应用上下文环境 */ private static Conf...
2019-04-25 11:45:44
1032
1
转载 SpringBoot发布HttpClient服务和客户端调用HttpClient服务
添加依赖<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/mav...
2019-04-23 11:46:40
1420
2
原创 .net 自定义队列
1、引入命名空间 using System.Collections.Generic; class PrinterQueue<T> { /// <summary> /// 移除并返回位于队列1 开始处的对象 /// </summary> /// <returns><...
2019-03-21 08:42:11
402
原创 .net mqtt 消息收发
1、添加引用Apache.NMS.ActiveMQ;2、发送代码 /// <summary> /// 消息发送 /// </summary> /// <param name="sender"></param> /// <param name="e">&am
2019-03-06 10:43:23
691
原创 winfrom post请求 oauth添加验证
try { string result = ""; HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://192.168.1.103:8001/oauth/token"); req.Method =...
2019-02-20 16:23:16
649
原创 winfrom,打印机设置
1、获取本地打印机using System;using System.Collections.Generic;using System.Drawing.Printing;using System.Linq;using System.Text;using System.Threading.Tasks;namespace print.Common{ public class...
2019-02-18 12:15:45
409
原创 winfrom打印程序 m2mqtt客户端
1、先引用ThoughtWorks.QRCode和M2Mqtt.Net包2、拖打印控件printDocument,添加打印事件printDocument1_PrintPage,当打印时,调用printDocument1.Print();3、打印预览,拖打印预览控件,当预览时调用 //设置页面的预览的页码 //设置显示页面显示的大小(也就...
2019-02-13 09:02:00
437
转载 C#中使用正则表达式验证电话号码、手机号、身份证号、数字和邮编
验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_telephone, @"^(/d{3,4}-)?/d{6,8}$"); }验证手机号码的
2017-06-01 16:38:44
747
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人