摘要: 在pom.xml文件中,<build></build>标签内添加 <resources> <resource> <!-- 将resource 的配置文件加载进去--> <directory>src/main/resources</directory> <includes> <include>**/* 阅读全文
posted @ 2021-01-08 16:18 SimpleSmile 阅读(282) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $('#tt').datagrid({ title:'Editable DataGrid', iconCls:'icon-edit', width:660, height:250, singleSelect:true, idField:'itemid', url:'dat 阅读全文
posted @ 2021-01-07 14:29 SimpleSmile 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述: 将业务代码放在service层,执行saveOrUpdate()时,出现对象已经存在的异常。Exception in thread"main"org.hibernate.NonUniqueObjectException: a different object with the sam 阅读全文
posted @ 2021-01-06 09:52 SimpleSmile 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1.比如post表单,传body 形式非json格式 而是 username=admin&password=password ngx.req.read_body() local args = ngx.req.get_body_data() local asArr = split(args,"&") 阅读全文
posted @ 2021-01-05 09:40 SimpleSmile 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1.dvwa是一个开源用来测试sql注入的php网站 2.源码地址:https://github.com/digininja/DVWA 下载都在这里 3.下载dvwa,通过配置host可以下载相应资源文件(资源文件名 dvwa-master)( git clone https://github.co 阅读全文
posted @ 2021-01-04 17:50 SimpleSmile 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.打开浏览器:https://www.ipaddress.com/ 2.输入下载域名 3.将域名解析的ip地址,写入host文件中 C://windows//system32/drive/etc/host ip地址 域名 保存 这样就可以下载资源了。 阅读全文
posted @ 2021-01-04 16:39 SimpleSmile 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1 #注意,初始化 pip install pypiwin32 # 重新下载命令 : python -m pip install --upgrade pypiwin32 --force-reinstall 2 #如果是离线,则需要到pypiwin32官网下载文件,放入Python安装目录的Scrip 阅读全文
posted @ 2020-12-28 10:28 SimpleSmile 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 1 -- 准许获取传参内容 2 3 ngx.req.read_body() 4 5 -- 获取传参内容参数 6 7 8 9 local args = ngx.req.get_body_data() 10 11 local cjson = require("cjson"); 12 13 14 15 - 阅读全文
posted @ 2020-12-28 08:53 SimpleSmile 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: -- 准许获取传参内容 ngx.req.read_body() -- 获取传参内容参数 local args = ngx.req.get_body_data() for v in string.gmatch(args, '正则表达式') do -- 打印 正则表达式匹配的内容 print("from 阅读全文
posted @ 2020-12-28 08:50 SimpleSmile 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 现在很多基于百度的nginx 防止sql注入都是get方式,如果post就没有了. 坑点: 1.$query_string 获取get请求的数据 2.$request_body 获取post请求的数据,但是这里如果对$request_body进行校验,则为空!!!!!!!!!! 所以这个方式不可行. 阅读全文
posted @ 2020-12-21 16:57 SimpleSmile 阅读(3469) 评论(0) 推荐(0) 编辑