上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: 运行结果: resourcemappermapperresource 阅读全文
posted @ 2018-03-14 16:26 星瑞 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 运行结果: bean.UserUser[name='null', age=null, address='null'] 阅读全文
posted @ 2018-03-13 14:46 星瑞 阅读(115) 评论(0) 推荐(0) 编辑
摘要: BUILD_NUMBER 目前的编号,如“153” JOB_NAME 此构建项目的名称,如“foo”或“foo / bar”。 JOB_BASE_NAME 此建立项目的名称将剥离文件夹路径,例如“bar / foo”的“foo”。 JOB_URL 此作业的完整URL,如http:// server: 阅读全文
posted @ 2018-03-09 15:34 星瑞 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 一、命令行配置 windows: Linux: 二、邮件内容配置 windows: Linux: 新方式: 阅读全文
posted @ 2018-03-09 15:30 星瑞 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 邮件配置: 邮件内容范例: ${FILE,path="C:\\Users\\Administrator\\.jenkins\\workspace\\XXX自动化测试工程目录\\$JOB_BASE_NAME\\reports_$BUILD_NUMBER.html"} <br> 详细信息请查看地址: < 阅读全文
posted @ 2018-03-09 15:24 星瑞 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: web.xml UserManage-servlet.xml spring-config.xml mybatis-config.xml jdbc.properties 阅读全文
posted @ 2018-02-26 19:13 星瑞 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 点击提交按钮后使用Ajax将用户名和密码传至后台校验,然后判断返回结果进行跳转或提示错误。 界面如下: 阅读全文
posted @ 2018-02-23 14:43 星瑞 阅读(373) 评论(0) 推荐(0) 编辑
摘要: spring mvc form表单submit直接提交出现乱码。导致乱码一般是服务器端和页面之间编码不一致造成的。根据这一思路可以依次可以有以下方案。 1、jsp页面设置编码 2、web.xml中添加编码设置 注意,此段编码设置必须写在所有filter的前面,否则有可能不起作用。 阅读全文
posted @ 2018-02-14 17:50 星瑞 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Java to JSON: 1 package json.jackson; 2 3 import bean.User; 4 import com.fasterxml.jackson.databind.ObjectMapper; 5 6 import java.io.File; 7 import java.util.Map; 8 9 /** 10 * Jackson – ... 阅读全文
posted @ 2018-02-13 16:38 星瑞 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: 1 package basictype; 2 3 /** 4 * byte、char和String类型相互转换 5 */ 6 public class CHJavaType { 7 public static void main(String[] args) { 8 String string = "abcd"; 9 10 /... 阅读全文
posted @ 2018-02-13 14:58 星瑞 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 代码说明: 运行结果: 阅读全文
posted @ 2018-02-13 11:15 星瑞 阅读(432) 评论(0) 推荐(0) 编辑
摘要: Java 8 – Date Time APIJava 8 comes with a much improved and much required change in the way date and time is handled.The classes that represent the da 阅读全文
posted @ 2018-02-12 17:11 星瑞 阅读(1741) 评论(0) 推荐(0) 编辑
摘要: 使用gson包操作JSON数据。 依赖包:gson-2.8.2.jar 代码如下: 测试代码: 运行结果: {"name":"tom","age":25,"address":"NO.1 street"}User[name='tom', age=25, address='NO.1 street'] 阅读全文
posted @ 2018-02-12 11:46 星瑞 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 执行结果: 详细:http://uule.iteye.com/blog/1558891 阅读全文
posted @ 2018-02-12 11:28 星瑞 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 依赖包:json-20180130.jar MAVEN地址: 比较简单,一看就懂,源码如下: 运行结果: 1、JSONObject: {"name":"tom","id":"1","age":"25"}查询name:tom2、JSONArray数组: ["yang","li","zhang",nul 阅读全文
posted @ 2018-02-11 16:19 星瑞 阅读(3045) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页