上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: Spring boot 启动提示: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6 阅读全文
posted @ 2017-07-15 16:46 whendream 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 之前没有折腾过Spring,直接上来怼Spring Boot异常痛苦,参考着官网的guide(https://spring.io/guides)写了几个demo; spring boot 跑起来确是方便,有种python的感觉,几行代码就可以起一个web服务,还不用自己去配置tomcat之类的; 于 阅读全文
posted @ 2017-07-14 21:27 whendream 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: 前端页面通过thymeleaf渲染 前后端的传递关键在html上面,请看代码: th:action="@{/userLogin}" 表示这个form表单的action会指向/userLogin th:object="${user}" 表示form表单的内容会以user的形式传递 th:field:" 阅读全文
posted @ 2017-07-14 21:18 whendream 阅读(6534) 评论(0) 推荐(0) 编辑
摘要: 通过data-jpa来访问数据库 记得加上mysql-connector-java的依赖,不然提示找不到jdbc驱动 数据源配置,spring boot的配置文件是:application.properties 根据自己需求配置 数据库的操作非常简单,JPA会根据解析User类中的参数从而得到方法 阅读全文
posted @ 2017-07-14 21:08 whendream 阅读(6674) 评论(0) 推荐(0) 编辑
摘要: 代码结构 详细代码说明 pom.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XM 阅读全文
posted @ 2017-07-13 22:03 whendream 阅读(4488) 评论(0) 推荐(0) 编辑
摘要: 可以参考这个demo 阅读全文
posted @ 2017-07-10 16:08 whendream 阅读(270) 评论(1) 推荐(0) 编辑
摘要: 背景 想把数组转为list,使用list的判断元素是否存在的方法,结果发现一个坑,int类型的数组失败了 步骤 这样不行,会有boxing issue google结果是这样 java 8 的话可以这样: 可以参考:https://www.mkyong.com/java/java-how-to-co 阅读全文
posted @ 2017-07-10 14:34 whendream 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 背景 性能压测工具之前使用的是jmeter,这次说的是nGrinder,先直接搬运两者之间的比较 这里还有一个详细的对比: http://qa.blog.163.com/blog/static/19014700220125264628978/ nGrinder采用的controler-agent模式 阅读全文
posted @ 2017-07-10 11:28 whendream 阅读(11797) 评论(6) 推荐(1) 编辑
摘要: 背景 应答为json,为了更好的展示在前端页面,需要对其格式化加颜色高亮 效果图 步骤 js中添加 css中添加 参考资料 https://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript 阅读全文
posted @ 2017-07-10 11:02 whendream 阅读(4684) 评论(0) 推荐(0) 编辑
摘要: 背景 直接使用eclipse工具去执行,没有问题,通过testng.xml去执行,没有问题,但通过mvn clean test执行,就报错,提示org.apache.ibatis.binding.BindingException: Invalid bound statement 解决方法 首先先肯定 阅读全文
posted @ 2017-07-03 22:45 whendream 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 背景jenkins自带的参数化不支持多选框,不过有插件支持:Extended Choice Parameter Plug-In插件地址: https://plugins.jenkins.io/extended-choice-parameter 使用教程 Name -- 定义变量名 Parameter 阅读全文
posted @ 2017-07-03 22:38 whendream 阅读(5982) 评论(1) 推荐(0) 编辑
摘要: jstack – 用来查看堆栈信息 jstat – 用来查看JVM相关信息 jstack用法 找到线程id后,转为16进制 printf "%x\n" [id] printf "%x\n" [id] printf "%x\n" [id] printf "%x\n" [id] printf "%x\n 阅读全文
posted @ 2017-07-03 11:15 whendream 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 官网:http://nmon.sourceforge.net/pmwiki.php 步骤 1. 下载nmon到linux上; 2. 解压tar包,根据使用的linux版本选择使用的文件,并对其加上使用权限chmod a+x 3. 直接执行文件即可使用 c -- 查看CPU m -- 查看内存 n - 阅读全文
posted @ 2017-07-03 10:46 whendream 阅读(428) 评论(1) 推荐(0) 编辑
摘要: 执行 ulimit -a 查看系统配置 需要修改max user processes 和 open files 这两个值 vim /etc/security/limits.conf #新增下面几行 * soft nofile 65535 * hard nofile 65535 * soft npro 阅读全文
posted @ 2017-06-27 20:37 whendream 阅读(315) 评论(1) 推荐(0) 编辑
摘要: 背景 java项目的话,包依赖一般都是maven管理,当然还有gradle,对于包的管理非常方便,maven的话只要在pom.xml中添加依赖包的maven坐标就可以了的,那python呢 ? 解决方法 现在的python版本都自带pip功能的,安装第三方包直接pip install xxx,和li 阅读全文
posted @ 2017-06-24 17:23 whendream 阅读(377) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页