原创 nginx lua 中賦值變量返回

nginx下:  location /proxy{                 default_type 'text/plain';                 lua_code_cache off;              

原创 mysql 刪除日誌表重複數據

DELETE zzz_statis_20190114_copy FROM zzz_statis_20190114_copy, ( SELECT min(id) as id, openid FROM zzz_statis_20190114

原创 spring boot RestTemplate post 參數json返回json

定義config @Configuration public class ApiConfig { @Bean public RestTemplate restTemplate(ClientHttpRequestFacto

原创 dos

刪除當前目錄下所有的examples目錄(文件夾) :: @echo on setlocal enabledelayedexpansion      @REM 設置你想刪除的目錄   set WHAT_SHOULD_BE_DELETED=

原创 spring boot 多環境配置和啓動

多環境配置       以上都不是重點,這纔是重點,這纔是重點,這纔是重點,重要的事情說3遍。我們在開發Spring Boot應用時,通常同一套程序會被應用和安裝到幾個不同的環境,比如:開發、測試、生產等。其中每個環境的數據庫地址、服務器

原创 nginx websocket lua

本文主要介紹nginx配合lua構建websocket 例子。 下載lua-resty-websocket git clone https://github.com/agentzh/lua-resty-websocket.git ngi

原创 ajax post json http https

JS前端var params={}; params.openid="asdasd"; $.ajax({ async:false, type:"post", contentType : "application/js

原创 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   

原创 C++類成員函數指針

c++函數指針的定義形式:返回類型 (類名稱::*函數成員名稱)(參數類型,參數類型,參數類型,….);    #include <iostream> using namespace std; class test { public: