上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: idea打包的jar文件在spark执行是报错: Invalid signature file digest for Manifest 通过以下命令解决: zip -d myjob.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF 阅读全文
posted @ 2018-08-07 14:29 范世强 阅读(3087) 评论(1) 推荐(0) 编辑
摘要: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html 阅读全文
posted @ 2018-05-31 10:28 范世强 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: https://wiki.sei.cmu.edu/confluence/display/java/IDS00-J.+Prevent+SQL+injection 阅读全文
posted @ 2018-05-24 12:30 范世强 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 利用idea、phpstorm系列的ide的code inspect功能可以开发出适用于各种编程语言的代码静态分析工具。这个功能大家可以自己实现扩展规则,规则也使用了visitor模式,规则里对关心的语法树节点处理即可。 一个inspect的插件代码参考 git@github.com:ferrius 阅读全文
posted @ 2018-05-03 09:55 范世强 阅读(6838) 评论(0) 推荐(0) 编辑
摘要: 测试代码: 默认策略antisamy.xml 策略的测试结果: 阅读全文
posted @ 2018-04-19 09:49 范世强 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: git remote set-url origin https://github.com/LongKnight/git-basics.gitgit remote rm origin git remote add origin git@git.xiaojukeji.com:fanshiqiang/co 阅读全文
posted @ 2018-04-18 10:52 范世强 阅读(249) 评论(0) 推荐(0) 编辑
摘要: npm list -g --depth 1 查看已经安装的全局模块 阅读全文
posted @ 2018-04-09 18:27 范世强 阅读(220) 评论(0) 推荐(0) 编辑
摘要: //将byte[]转换为16进制字符串public static String byte2hex(byte[] b) { StringBuilder hs = new StringBuilder(); String stmp; for (int n = 0; b != null && n < b.l 阅读全文
posted @ 2018-04-04 09:59 范世强 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 看代码时会碰到注解的处理类难定位的情况,比如spring的某个注解我们想知道到底是谁在处理他,他起什么作用,通过普通的代码搜索功能不容易找到,比如好用的方法就是条件断点。 比如下断:AccessibleObject类的如下代码 isAnnotationPresent函数是jdk 类 Accessib 阅读全文
posted @ 2018-03-27 21:10 范世强 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: ArrayList<String> names = new ArrayList<String>(Arrays.asList("Delete","Insert","Select","Update")); 阅读全文
posted @ 2018-03-23 10:52 范世强 阅读(628) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页