原创 redis分佈式鎖_vanillamba

@Api(value = "鎖機制", description = "鎖機制說明") @RestController public class LockController { private static long count

原创 數組包含 @>

Table 9-45 shows the operators available for array types. Table 9-45. Array Operators Operator Description Example Res

原创 windows上啓動rabbitMQ

啓動、停止、重新安裝等。 1、雙擊 RabbitMQ Command Prompt  2、進入C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.4.1\sbin輸入命令: r

原创 sql查詢 多字段的重複 記錄的數據

一: select * from table where (column1,column2) in  ( select column1,column2 from table GROUP BY column1,column2 having

原创 git 命令及 對應的撤銷操作

git add . 或git add -a或git add filename (.代表所有新增、修改  -a 新增、修改、刪除)       加入緩存區(.或者-a表示全部,也可單獨文件) git commit -m ‘new proje

原创 虛擬機centos 上裝nginx 啓動

1、Nginx ("engine x") 是一個高性能的 HTTP 和反向代理服務器,也是一個 IMAP/POP3/SMTP 服務器 2、常見的應用服務器:     Apache/Microsoft IIS /Tomcat/Lighttp

原创 docker入門

linux下:sudo wget -qO- https://get.doctor.com | sh (安裝doctor)                sudo usermod -aG docker 用戶名 (允許非root用戶使用doc

原创 pgsql 查詢字段中根據逗號分隔的字符串的的 個數

select length(translate(column,','||column,','))+1 from table   參見: 1.translate 與replace類似是替換函數,但translate是一次替換多個單個的字符。

原创 單個字段去重複,查詢多個字段

單個字段  或者是 多個字段組合去重 用distinct 單個字段去重複而不用管其他的字段用: row_number() over(partition by columnA order by columnB desc) 參見:https:

原创 逆波蘭表達式

中綴表達式 轉 逆波蘭表達式(後綴表達式):  

原创 均方根誤差(RMSE),平均絕對誤差(MAE),標準差(Standard Deviation)的對比

RMSE Root Mean Square Error,均方根誤差 是觀測值與真值偏差的平方和與觀測次數m比值的平方根。 是用來衡量觀測值同真值之間的偏差 MAE Mean Absolute Error ,平均絕對誤差 是絕對誤差的平均值

原创 python 幾個高等函數

exp:高等數學裏以自然常數e爲底的指數函數 numpy.exp():返回e的冪次方,e是一個常數爲2.71828   numpy.power(3,x)   所有元素乘以3   和 3**X 得到的 結果是一致的   numpy.reci

原创 spring傳播特性由淺入深,@Transactional註解

轉自:  https://blog.csdn.net/qq_34552004/article/details/79599275#commentBox spring支持編程式事務管理和聲明式事務管理兩種方式。         編程式事務管理

原创 oracle的導入dmp 文件 報sp2-0734

imp 命令是在dos提示符下執行的。  直接cmd後執行而不是在sql下執行的    oracle 查詢路徑的語句: select * from all_directories where directory_name = 'ADMIN

原创 ngnix 下面裝 echo 模塊

1 、下載: wget https://github.com/openresty/echo-nginx-module/archive/v0.60.tar.gz 2、 解壓: tar -zxvf ...tar 3、進行預編譯:在 nginx