摘要: 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 阅读(1125) 评论(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 阅读(347) 评论(0) 推荐(0)
摘要: 现在很多基于百度的nginx 防止sql注入都是get方式,如果post就没有了. 坑点: 1.$query_string 获取get请求的数据 2.$request_body 获取post请求的数据,但是这里如果对$request_body进行校验,则为空!!!!!!!!!! 所以这个方式不可行. 阅读全文
posted @ 2020-12-21 16:57 SimpleSmile 阅读(4235) 评论(2) 推荐(0)
摘要: 环境:springboot 2.4.0 1.添加依赖 <dependency> <groupId>com.alicp.jetcache</groupId> <artifactId>jetcache-starter-redis</artifactId> <version>2.6.0</version> 阅读全文
posted @ 2020-12-17 15:26 SimpleSmile 阅读(1477) 评论(0) 推荐(0)
摘要: 环境:springboot 2.4.0 1.添加依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-crypto</artifactId> <version>5.5.4</version> </dependency> 2.初 阅读全文
posted @ 2020-12-17 15:20 SimpleSmile 阅读(7251) 评论(0) 推荐(0)
摘要: 基于sprigboot的日志模板 <?xml version="1.0" encoding="UTF-8"?> <!-- For assistance related to logback-translator or configuration --> <!-- files in general, 阅读全文
posted @ 2020-12-15 15:02 SimpleSmile 阅读(583) 评论(0) 推荐(0)
摘要: docker run --name definedName(自定义容器名称) -p 8080:8080(端口映射 本机端口: docker端口 ) -p 8081:8081 -p .... -d imagesName(镜像名称) 阅读全文
posted @ 2020-12-15 11:40 SimpleSmile 阅读(18866) 评论(0) 推荐(0)
摘要: 1.系统 centos 2.cp zk/conf/zoo_sample.cfg zk/conf/zoo.cfg 3.修改 zoo.cfg中 的datadir目录地址 4.zk/bin/zkServer.sh start 5.zk/bin/zkServer.sh status 提示未启动 6.查看日志 阅读全文
posted @ 2020-12-10 11:15 SimpleSmile 阅读(261) 评论(0) 推荐(0)
摘要: 1.启动docker docker run --name tomcat -p 8080:8080 -v $PWD/test:/usr/local/tomcat/webapps/test -d tomcat --name tomcat : 给一个容器命名 -p 8080:8080 : 容器内的端口与外 阅读全文
posted @ 2020-12-03 17:09 SimpleSmile 阅读(378) 评论(0) 推荐(0)
摘要: 1.定义注解,标签加上 @Target({ElementType.TYPE,ElementType.METHOD}) type:放类上 method:放方法上. 2.aop切面操作 @Pointcut("@annotation(com.elim.spring.support.MyAnnotation 阅读全文
posted @ 2020-12-02 14:36 SimpleSmile 阅读(528) 评论(0) 推荐(0)