原创 JS獲取URL後面的參數

/** * 獲取url後的參數 * @param variable * @returns {*} */ function getQueryVariable(variable) { var query = window.l

原创 js獲取日期和星期

function showTime() { var show_day = new Array('星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'); var date = n

原创 @Data,@ConfigurationProperties的使用介紹

@ConfigurationProperties可以自定義實體類,映射yml或者properties文件,自動爲對象bean屬性捆綁數據。 @Data是引入lombook依賴,能夠使代碼更加簡潔,Lombok能以簡單的註解形式來簡化jav

原创 js使用setInterval,實現獲取驗證碼倒計時

應用場景:點擊按鈕,獲取驗證碼,倒計時60秒 【html】 <a id="sendVertifyCode" style="width:100px;float: right;color:red;height: 30px;line-he

原创 jsp如何使用layerui

官網下載相關文件,https://www.layui.com/ ├─css //css目錄 │ │─modules //模塊css目錄(一般如果模塊相對較大,我們會單獨提取,比如下面三個:) │ │ ├─laydate │ │ ├─lay

原创 解決PLSQL亂碼,顯示????的問題,最佳方案

步驟一:執行在plsql中執行 select userenv('language') from dual; 語句來查看本機的字符集,或是執行 select * from V$NLS_PARAMETERS; 語句。兩者的區別是第一種查看到的

原创 nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

nginx -s stop發生錯誤:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory),logs目錄下

原创 about to fork child process, waiting until server is ready for connections. forked process: 18859

about to fork child process, waiting until server is ready for connections. forked process: 18859 ERROR: child process

原创 centos 7下安裝mongodb

1、訪問mongodb https://www.mongodb.com/download-center/community 2、我選擇版本 3.2.22 下載解壓,並進入/usr/local/mongodb/  配置環境變量 sour

原创 springboot整合mongodb,使用BaseEntityMongo,繼承MongoRepository,出現找不到bean

Description: Field businessLogRecordDao in com.etc.service.impl.BusinessLogRecordServiceImpl required a bean of type 'c

原创 Springboot使用J2Cache,整合ehcache和redis緩存框架,實現兩級緩存

首先看下整合過程 1、pom.xml添加相關依賴 <!-- 添加ehcache支持 --> <dependency> <groupId>org.springframework.boot</groupId> <arti

原创 Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to

springboot配置redis連接出現錯誤: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unab

原创 Redis的16個數據庫學習總結說明

Redis數據庫有16個,分別是0-15,每個數據庫用數字命名,而且每個數據庫的連接密碼都一樣,redis只允許一個密碼。數據庫之間不能共享,並且基於單機纔有,如果是集羣,就沒有數據庫的概念了。 redis之所以分這麼多個數據庫,也是爲了

原创 idea的ehcache.xml提示:Error:External resource http://ehcache.org/ehcache.xsd is not registered

Error:External resource http://ehcache.org/ehcache.xsd is not registered 解決方法:

原创 谷歌瀏覽器Chrome,提示錯誤代碼:ERR_UNSAFE_PORT

很多瀏覽器都有不安全端口列表限制,所有最簡單的解決方法就是修改應用端口。 以下爲Google Chrome 默認非安全端口列表 1, // tcpmux 7, // echo 9, // discard