- 博客(8)
- 收藏
- 关注
原创 nginx lua 中赋值变量返回
nginx下:location /proxy{ default_type 'text/plain'; lua_code_cache off; set $appid '';//从lua里重写 set_by_lua_file $url '/home/cq/share...
2019-11-27 16:42:18
2285
2
转载 mysql 删除日志表重复数据
DELETE zzz_statis_20190114_copyFROMzzz_statis_20190114_copy,(SELECT min(id) as id, openidFROMzzz_statis_20190114_copyGROUP BY openid) t2wherezzz_statis_20190114_copy.openid = t2.openidand ...
2019-01-24 11:36:56
178
转载 spring boot RestTemplate post 参数json返回json
定义config@Configurationpublic class ApiConfig { @Bean public RestTemplate restTemplate(ClientHttpRequestFactory factory) { return new RestTemplate(factory); } @Bean pub...
2019-01-23 15:32:38
2871
转载 ajax post json http https
JS前端var params={};params.openid="asdasd";$.ajax({ async:false, type:"post", contentType : "application/json;charset=UTF-8", //类型必填 url:"https://192.168.0.109:5156/game/ReqData", ...
2018-07-13 16:04:10
4324
转载 spring boot 多环境配置和启动
多环境配置 以上都不是重点,这才是重点,这才是重点,这才是重点,重要的事情说3遍。我们在开发Spring Boot应用时,通常同一套程序会被应用和安装到几个不同的环境,比如:开发、测试、生产等。其中每个环境的数据库地址、服务器端口等等配置都会不同,如果在为不同环境打包时都要频繁修改配置文件的话,那必将是个非常繁琐且容易发生错误的事。 对于多环境的配置,各种项目构建工具或是框...
2018-07-13 12:18:57
595
转载 C++类成员函数指针
c++函数指针的定义形式:返回类型 (类名称::*函数成员名称)(参数类型,参数类型,参数类型,….); #include using namespace std;class test{public: test() { cout<<"constructor"<<endl; } int fun1(int a, char c) {
2018-01-17 20:46:48
208
转载 nginx websocket lua
本文主要介绍nginx配合lua构建websocket 例子。下载lua-resty-websocketgit clone https://github.com/agentzh/lua-resty-websocket.gitnginx conf 配置 server { listen 38000; server_name loca
2018-01-15 17:31:59
1659
原创 nginx https lua mysql 应用例子
--安装nginx-1.12.2liujit(5.1) http://luajit.org wget http://luajit.org/download/LuaJIT-2.0.0-beta9.tar.gz lua http://www.lua.org ngx_devel_kit git clone htt
2018-01-15 14:38:25
479
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人