上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页
摘要: basecontroller 中的方法: /** * 初始化数据绑定 * 1. 将所有传递进来的String进行HTML编码,防止XSS攻击 * 2. 将字段中Date类型转换为String类型 */ @InitBinder protected void initBinder(WebDataBind 阅读全文
posted @ 2020-02-01 19:21 hoge 阅读(4022) 评论(0) 推荐(0) 编辑
摘要: /** * 获取当前用户 * * @return 取不到返回 new User() */public static LoginUser getLoginUser() { try { Object principal = SecurityContextHolder.getContext().getAu 阅读全文
posted @ 2020-01-30 19:58 hoge 阅读(4322) 评论(0) 推荐(0) 编辑
摘要: Request method 'POST' not supported 因为没有网络了,无法引用jquery,根本就没提交到正确的controller中 阅读全文
posted @ 2020-01-30 12:05 hoge 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/stulzq/p/9291237.html https://www.haowenbo.com/articles/2019/07/24/1563964257491.html 1、在安装jenkins的时候一直失败。报错内容是 stat: canno 阅读全文
posted @ 2020-01-21 16:40 hoge 阅读(1775) 评论(0) 推荐(1) 编辑
摘要: 1、Can't connect to local MySQL server through socket '/tmp/mysql.sock' 做了个软连接:ln -s /var/lib/mysql/mysql.sock /tmp 2、 [root@lml7wenjian software]# ser 阅读全文
posted @ 2020-01-21 16:35 hoge 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 1、新机器申请下来后,关闭系统自带防火墙: 1 ifconfig 2 iptables -L 3 iptables -F 4 iptables -L 5 ifconfig 6 ifstat 7 ifenslave 8 ifenslave -c 9 man man 10 exit 11 init 0 阅读全文
posted @ 2020-01-20 15:31 hoge 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 禅道安装 sudo tar -zxvf ZenTaoPMS.12.0.stable.zbox_64.tar.gz -C /opt /opt/zbox/zbox stop /opt/zbox/zbox -ap 8081 -mp 3307 /opt/zbox/zbox start 阅读全文
posted @ 2020-01-20 12:37 hoge 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1、将删除的记录保存的历史表: DROP TRIGGER IF EXISTS `tri_delete_dict`; DELIMITER ;; CREATE TRIGGER `tri_delete_dict` AFTER DELETE ON `scm_dict` FOR EACH ROW begin 阅读全文
posted @ 2020-01-20 09:56 hoge 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1、写脚本,放到/usr/local/bin #!/usr/bin/expect set timeout 30 spawn ssh -p [lindex $argv 0] [lindex $argv 1]@[lindex $argv 2] expect { "(yes/no)?" {send "ye 阅读全文
posted @ 2020-01-16 10:31 hoge 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1、参考: https://www.cnblogs.com/dengyulinBlog/p/6398310.html https://www.jianshu.com/p/1cfbc1518fce 启动命令: ./nexus run ./nexus stop // in the bin root 我们 阅读全文
posted @ 2020-01-04 18:28 hoge 阅读(251) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页