原创 【異常】阿里雲ECS之yum源"Name or service not known"&安裝MySQL

使用yum安裝mysql的時候出現; 阿里雲自帶的yum源 添加新的源之後出現問題,刪掉新加的源之後還是報錯。 http://mirrors.cloud.aliyuncs.com/epel/7/x86_64/repodata/

原创 【異常】cvc-elt.1: 找不到元素 'beans'報錯(ehcache-spring)

出錯位置: http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring http://ehcache-spring-annot

原创 ElasticSearch DSL小記之Nested Query + Nested Aggregation + Reverse Nested

ElasticSearch Version:6.2.2 Nested Aggregation A special single bucket aggregation that enables aggregating nested

原创 【異常】阿里雲ECS之Centos7下載文件出現”wget: unable to resolve host address”

[root@iz2ze8w7169ei61c5c1il5z yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/rep

原创 Shiro之詳細入門附Demo

第一步:Apache Shiro簡介: Apache Shiro 是一個強大而靈活的開源安全框架,它乾淨利落地處理身份認證,授權,企業會話管理和加密。 Apache Shiro 的首要目標是易於使用和理解。安全有時候是很複雜的

原创 Echarts圖表之插件生成PDF下載

需要用到的插件: <script src="js/html2canvas.min.js" type="text/javascript" charset="utf-8"></script> <script src="js/jspdf

原创 【思路】ArrayList中匹配元素替換至指定位置

數據源: [1,2,3,4,5] 結果數據: [1,5,3,4,2] 匹配元素爲5的元素移動到第二個元素位置,不影響其他數據準確性 x爲匹配元素 int flag = 0; for (int i = 0; i < list_

原创 JavaScript之正則表達式去除換行符

var key = params.name.replace(/<\/?.+?>/g,"").replace(/[\r\n]/g, ""); 點贊 收藏 分享 文章舉報 D

原创 JAVA之for循環執行順序附Demo

for循環作爲java的基礎語法,方便靈活,相信有很多人只知道它用來遍歷數組,但是執行的順序沒人詳細瞭解。 常用的用法: for(i=1; i<=10; i++) { 語句; } for(表達式1;表達式2;表達式3

原创 【思路】嵌套List針對某index進行排序

嵌套List示例: [[“aa”,”bb”,”2”,”nn”],[“aa”,”bb”,”12”,”nn”],[“aa”,”bb”,”20”,”nn”],[“aa”,”bb”,”32”,”nn”],[“aa”,”bb”,”23”,

原创 annotation-config, annotation-driven, compont-scan 區別

綜合網上答案 <context:annotation-config/> 隱式地向spring容器中註冊AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostPro

原创 Echarts之柱狀圖獲取點擊柱子事件&自定義柱子顏色&類目軸縱向排列

<!DOCTYPE html> <html style="height: 100%"> <head> <meta charset="utf-8"> </head> <body styl

原创 【異常】Dangling meta character '*' near index 0

錯誤代碼: String[] data =Down_str.split("*"); 修改爲: String[] data =Down_str.split("\\*"); “*”作爲特殊的匹配字符,jdk無法其進行切割,添加轉義符

原创 Echarts之自定義Map熱力圖比例尺(視覺映射組件)

形如: visualMap組件有兩種展現形式,默認是continuous(連續型),要想實現圖片的形式,需要將type設置爲piecewise(分段型) 自定義顯示lable: pieces: [ {mi

原创 【異常】阿里雲 git用戶被黑客攻擊&【This account is currently not available.】

昨晚凌晨三點阿里雲服務器被黑客攻擊,今早來公司查看得知昨天在github上上傳代碼的時候被黑客攻擊(沒有使用公司內的網絡,使用家中的網絡可能是被攻擊的關鍵所在),被黑的用戶名是“git”用戶,密碼特別簡單(passwd=‘git