摘要: sh脚本 阅读全文
posted @ 2018-04-25 08:42 243573295 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 参考案例:(本位使用markdown编写) git.oschina实例:https://gitee.com/lhhTestTool/LhhMockito # LhhMockitomock 单元测试 Mockito进行实战演练# Mockito是什么?Mockito是mocking框架,它让你用简洁的 阅读全文
posted @ 2018-04-16 10:52 243573295 阅读(1669) 评论(0) 推荐(0) 编辑
摘要: 参考案例:(本位使用markdown编写)https://www.ibm.com/developerworks/cn/opensource/os-cn-easymock/https://www.yiibai.com/easymock/git.oschina实例:https://gitee.com/l 阅读全文
posted @ 2018-04-12 11:01 243573295 阅读(3126) 评论(0) 推荐(1) 编辑
摘要: # SpringBoot Jdbc JPAJPA是`Java Persistence API`的简称,中文名Java持久层API,是JDK 5.0注解或XML描述对象-关系表的映射关系,并将运行期的实体对象持久化到数据库中基于模板Dao的实现,使得这些具体实体的Dao层已经变的非常“薄”,有一些具体 阅读全文
posted @ 2018-04-11 11:02 243573295 阅读(825) 评论(0) 推荐(1) 编辑
摘要: 顶级页面 阅读全文
posted @ 2018-01-08 19:57 243573295 阅读(1157) 评论(1) 推荐(0) 编辑
摘要: http://shiro.apache.org/authorization.html#Authorization-PermissionGranularity shiro默认的过滤器 Shiro内置了很多默认的拦截器,比如身份验证、授权等相关的。默认拦截器可以参考org.apache.shiro.we 阅读全文
posted @ 2018-01-08 13:35 243573295 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: 方式一 方式二 另,本地windows执行hadoop需要环境变量的支持,如下提供hadoop命令下载包,下载后直接添加环境变量对他的引用 链接:https://pan.baidu.com/s/1eRIHmdO 密码:ly38 阅读全文
posted @ 2018-01-05 14:02 243573295 阅读(2680) 评论(0) 推荐(1) 编辑
摘要: TemplateLoader的实现 作为一个模板文件加载的抽象,自然不能限制模板来自何方,在FreeMarker中由几个主要的实现类来体现,这些TemplateLoader是可以独立使用的,Webapp需要Servlet环境。当然你可以实现自己的TemplateLoader. StringTempl 阅读全文
posted @ 2017-11-30 10:39 243573295 阅读(5785) 评论(0) 推荐(0) 编辑
摘要: /** * 对象转换成一个新的对象 * @param object * @private */ function _yh_tranformObject(object){ if(object == null || object == undefined || object == '') return object; const newObject = {}; for... 阅读全文
posted @ 2017-11-18 12:02 243573295 阅读(3275) 评论(0) 推荐(0) 编辑
摘要: 方法一 通过mergeCells方法 演示地址:http://issues.wenzhixin.net.cn/bootstrap-table/methods/mergeCells.html Merge some cells to one cell, the options contains foll 阅读全文
posted @ 2017-11-16 10:37 243573295 阅读(8941) 评论(0) 推荐(0) 编辑
摘要: 以项目test为例: 老地址:http://192.168.1.1:9797/john/test.git 新地址:http://git.xxx.xxx/john/test.git 远程仓库名称: origin 方法一 通过命令直接修改远程地址 方法二 通过命令先删除再添加远程仓库 方法三 直接修改配 阅读全文
posted @ 2017-11-16 09:31 243573295 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: 1、assigned 主键由外部程序负责生成,在 save() 之前必须指定一个。Hibernate不负责维护主键生成。与Hibernate和底层数据库都无关,可以跨数据库。在存储对象前,必须要使用主键的setter方法给主键赋值,至于这个值怎么生成,完全由自己决定,这种方法应该尽量避免。 配置文件 阅读全文
posted @ 2017-11-15 18:23 243573295 阅读(529) 评论(0) 推荐(0) 编辑
摘要: Hive 的官方文档请参考:http://wiki.apache.org/hadoop/Hive/LanguageManual 。 Create Table CREATE TABLE 创建一个指定名字的表。如果相同名字的表已经存在,则抛出异常;用户可以用 IF NOT EXIST 选项来忽略这个异常 阅读全文
posted @ 2017-11-15 17:49 243573295 阅读(2541) 评论(0) 推荐(0) 编辑
摘要: 将下列代码copy的echarts编辑器中 阅读全文
posted @ 2017-10-17 13:52 243573295 阅读(2143) 评论(0) 推荐(0) 编辑
摘要: 继承AuthorizingRealm类,重写方法doGetAuthenticationInfo 以上是临时解决方案,后面有更好的在补上 灵感来源:http://www.cnblogs.com/lingxue3769/p/5809543.html 阅读全文
posted @ 2017-09-29 14:21 243573295 阅读(2008) 评论(0) 推荐(0) 编辑
摘要: hibernate延迟加载代理对象实际对象读取方式 所有解决的问题 当两个对象相互关联并使用懒加载时,从数据库中取出来使用时报错,通过调试查看对象所有字段的值为null;其中有个handle的对象,代表着为hibernater的缓存代理对象。但通过get\setXXX()有能得到该对象的字段值。但是 阅读全文
posted @ 2017-09-15 09:35 243573295 阅读(1883) 评论(0) 推荐(1) 编辑
摘要: 本文灵感来自:http://www.cnblogs.com/chengxuyuanzhilu/p/5132328.html 子页面内容 子页面modal 绑定子页面触发按钮 阅读全文
posted @ 2017-08-21 17:58 243573295 阅读(3112) 评论(0) 推荐(0) 编辑
摘要: 方法 需要用到的另一函数 java 阅读全文
posted @ 2017-08-04 16:04 243573295 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: 看图 阅读全文
posted @ 2017-07-06 17:58 243573295 阅读(341) 评论(0) 推荐(0) 编辑
摘要: html页面 使用cdn加速、 阅读全文
posted @ 2017-07-06 14:14 243573295 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: /** * 将文件大小转换成 ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],单位 * @param bytes * @returns */ function bytesToSize(bytes) { if (bytes === 0 || bytes == null || bytes =='' || bytes ==... 阅读全文
posted @ 2017-06-28 14:59 243573295 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 效果 比列使用bootcdn加速 html css 另两个css为bootcdn的极速加载文件 阅读全文
posted @ 2017-06-28 11:41 243573295 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 安装Tesseract Tesseract已开源:https://github.com/tesseract-ocr http://blog.csdn.net/yimingsilence/article/details/51353772 阅读全文
posted @ 2017-06-27 13:57 243573295 阅读(1717) 评论(0) 推荐(0) 编辑
摘要: 蚂蚁部落 阅读全文
posted @ 2017-06-22 10:48 243573295 阅读(2720) 评论(0) 推荐(0) 编辑
摘要: js封装日期格式化方法 调用方式 http://blog.csdn.net/vbangle/article/details/5643091/ 阅读全文
posted @ 2017-06-19 15:23 243573295 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 效果 导入的js和css html的model js fileinput在处理上传后删除回调时存在无法与后台匹配的id 原因为fileinput在前端删除后在回调时没有保留file的对象,导致file对象的id丢失,而生成了一个新的id 解决方案:http://blog.csdn.net/xumoq 阅读全文
posted @ 2017-06-16 13:19 243573295 阅读(3710) 评论(0) 推荐(0) 编辑
摘要: 效果 导入的js和css \\ html js 修改了部分样式 阅读全文
posted @ 2017-06-15 11:49 243573295 阅读(2544) 评论(1) 推荐(0) 编辑
摘要: jquery鼠标悬停图片翻转效果 - 站长素材 高圆圆 高圆圆 高圆圆 高圆圆 高圆圆 高圆圆 适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗... 阅读全文
posted @ 2017-06-14 16:00 243573295 阅读(417) 评论(0) 推荐(0) 编辑
摘要: js: html 在处理html的select验证时的处理 添加红色部分即可验证,原因就是默认禁用/隐藏控件不验证,这里只手动排除禁用控件,即除了禁用控件外其他控件都校验 阅读全文
posted @ 2017-06-14 10:24 243573295 阅读(2783) 评论(0) 推荐(1) 编辑
摘要: html+js java接口数据处理 阅读全文
posted @ 2017-06-13 17:40 243573295 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 可以使用bootstrap的模态框(modal.js),使用它我们可以做出loading效果。 html js 阅读全文
posted @ 2017-06-13 16:14 243573295 阅读(26191) 评论(1) 推荐(0) 编辑
摘要: Thymeleaf其他案例看其他网站 http://www.cnblogs.com/hjwublog/p/5051732.html http://blog.csdn.net/u012706811/article/details/52185345 本例为详细对某些使用记录 1.list循环案例 a:t 阅读全文
posted @ 2017-06-09 13:38 243573295 阅读(1724) 评论(0) 推荐(1) 编辑
摘要: jquery跑马灯:http://www.dowebok.com/demo/188/index3.html 阅读全文
posted @ 2017-06-08 18:57 243573295 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1.新建node文件(文件中为需要发送的节点,不能包含主文件服务器) 2.ssh的免密登录批处理脚本(需要同级目录下的nodes文件) 3、scp批处理(需要同级目录下的nodes文件),即下文命令中的scp.sh 4、ssh批处理(需要同级目录下的nodes文件),即下文命令中的ssh.sh 使用 阅读全文
posted @ 2017-05-21 13:12 243573295 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 创建sudo无密码登陆 http://www.aboutyun.com/blog-61-428.html 阅读全文
posted @ 2017-05-15 17:07 243573295 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 所有节点关闭防火墙 在防火墙开启的情况下,执行如下两条命令: 临时关闭: service iptables stop 永久关闭防火墙:chkconfig iptables off 两个命令同时运行,运行完成后查看防火墙关闭状态: service iptables status 阅读全文
posted @ 2017-05-14 00:46 243573295 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Ubuntu14.04安装配置Hadoop2.6.0(完全分布式)与 wordcount实例运行 http://www.linuxidc.com/Linux/2015-01/112029p2.htm spark连接mysql错误,无法加载mysql的驱动的情况 http://www.tuicool. 阅读全文
posted @ 2017-05-11 17:23 243573295 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 在使用hive的时候启动成功 在执行查询函数时却提示错误 解决 将conf下面的hive-site.xml文件中的所有的system:user.name替换成用户名称,猜测可能是我使用的root管理员的情况下出现 替换后再次重启hive,执行show funcitons;成功 可以看到错误元在sys 阅读全文
posted @ 2017-05-09 16:49 243573295 阅读(2621) 评论(0) 推荐(0) 编辑
摘要: package com.qinghuainvest.utils.algorithm; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; /** * 排列组合 * * @author hwaggLee * */ public... 阅读全文
posted @ 2017-05-02 14:36 243573295 阅读(894) 评论(0) 推荐(0) 编辑
摘要: http://win7sky.com/luyouqishezhi/20130803-1053.html 阅读全文
posted @ 2017-04-29 23:56 243573295 阅读(416) 评论(0) 推荐(0) 编辑