- 博客(6)
- 收藏
- 关注
转载 使用java发送邮件简单的例子
需要导入 mail.jar 1.4.5 activation.jarpackage web;import java.util.Properties;import javax.mail.Authenticator;import javax.mail.Message;import javax.mail.MessagingException;import javax
2017-01-10 18:17:57
316
转载 get请求有中文时候一次encodeURI无效的解决方法
原文地址: http://blog.youkuaiyun.com/renminzdb/article/details/42422143encodeURI(encodeURI("中文"));第一次是把中文编码成%xy的格式,第二次是对%xy中的%进行编码,%编码成%25。整个传参过程大体应该是:提交页面使用encodeURI(encodeURI("中文"))编码,把最后的编码结果%25xy传递给
2017-01-10 10:39:57
2869
原创 关于mybatis单独传入String时出现There is no getter for property named 'keyWord' in class 'java.lang.String'解决
SELECT COMPANY company,DEPARTMENT department,USER_NO userNo,USER_NAME userName FROM user_table WHERE USER_STATUS = '01' AND (USER_NO like #{keyWord} OR DEPARTMENT like #{keyWord} OR PO
2017-01-10 10:26:04
522
原创 Maven搭建项目时默认J2SE-1.5解决方法
构建Maven工程的时候报以下告警:Description ResourcePath LocationTypeBuild path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this
2017-01-07 00:17:31
5665
原创 class.getResource和class.getClassLoader().getResource()路径对比
System.out.println(TestCase.class.getResource(""));System.out.println(TestCase.class.getResource("/"));System.out.println(TestCase.class.getResource("/SqlMapConfig.xml"));System.out.println(TestCas
2016-12-20 22:46:23
619
转载 javascript获取当前日期的前N天日期
//测试Copy Textfunction getDay(day){ var today = new Date(); var targetday_milliseconds=today.getTime() + 1000*60*60*24*day; today.setTime(targetday_
2016-12-09 10:49:34
974
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人