一:添加mail依赖 二:添加邮件配置 打开application.properties 三:创建邮件实体类 四:创建邮件常量类 创建core→constant→MailConstant 五:创建邮件业务类 MailService MailServiceImpl 六:创建ftl模板 这里我们创建一个 ...
分类:
编程语言 时间:
2018-09-30 16:45:22
阅读次数:
183
git fatal: http request failed解决办法
分类:
Web程序 时间:
2018-09-26 22:11:29
阅读次数:
203
最近发现DOMDocument对象很重要,还有XMLHTTP也很重要 注意大小写一定不能弄错. 属性: 1Attributes 存储节点的属性列表(只读) 2childNodes 存储节点的子节点列表(只读) 3dataType 返回此节点的数据类型 4Definition 以DTD或XML模式给出 ...
分类:
编程语言 时间:
2018-09-21 00:39:46
阅读次数:
203
我使用的是dom4j创建xml报文 1.创建root节点 Document document = DocumentHelper.createDocument(); Element root = DocumentHelper.createElement("RBSPMessage"); document ...
分类:
其他好文 时间:
2018-09-19 14:53:07
阅读次数:
171
一、简介 1、HSV颜色空间(hue色调,saturation饱和度,value亮度) HSV颜色空间与人眼所看色彩较接近, 故常用于颜色检测与识别。其中H(色调)、S(饱和度)、V(亮度) H 不同的颜色(红色/绿色/蓝色) 范围: 0~360 S 颜色深浅(浅红/深红) 范围: 0.0~1.0 ...
分类:
其他好文 时间:
2018-09-18 16:14:22
阅读次数:
225
#!python3 #-*- coding:utf8 -*- #PyPDF2可能会打不开某些pdf文档,也不能提取图片,图表或者其他媒介从PDF文件中。但是它能提取文本从PDF中,转化为字符。 import PyPDF2 #以二进制方式 读模式打开一个pdf文件 pdfFileObj=open('e ...
分类:
其他好文 时间:
2018-08-28 15:31:45
阅读次数:
670
#https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html#find-all #beautifulSoup可以解析HTML,下载安装时使用的是 pip install beautifulsoup4 ,导入模块时使用的是bs ...
分类:
Web程序 时间:
2018-08-28 13:10:31
阅读次数:
2751
构造下拉列表:方法之一:使用控件 <t:dictSelect> 对数据库中对应的表进行绑定 使用ajax,当下拉列表当选中的值改变时,改变其关联控件的值 当下拉列表声明id 时,如id="drugCatalogueId" 可使用 $('#name=drugCatalogueId').on('chan ...
分类:
其他好文 时间:
2018-08-23 00:36:35
阅读次数:
1552
private void sendNotify() { NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); NotificationCompat.Builder bui ...
分类:
移动开发 时间:
2018-08-20 16:40:11
阅读次数:
185
//新建段落 XWPFParagraph p1 = doc.CreateParagraph(); //对齐方式 p1.SetAlignment(ParagraphAlignment.LEFT); p1.SetVerticalAlignment(TextAlignment.AUTO); //Word边 ...
分类:
Windows程序 时间:
2018-08-10 17:06:12
阅读次数:
1227