原创 Command line is too long. Shorten command line for QuestionnaireApplication or also for Spring Boot
Error running 'QuestionnaireApplication': Command line is too long. Shorten command line for QuestionnaireApplicatio
原创 drawio安裝包下載 與私有化web部署
1. 最新的安裝包 https://github.com/jgraph/drawio-desktop/releases 私有化部署: 1.前提你的 服務器上已經安裝上了 git ,這就就不在贅述: git clone https:/
原创 NoSuchMethodError: io.netty.channel.SingleThreadEventLoop.(Lio/netty/channel/EventLoopGroup;
1. 現象 org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.No
原创 springmvc 接收前端對象 中包含list的數據的處理方法
<form id="search_form" role="form"> <div class="form-group mc-form-group"> <label class="control-label
原创 java web應用獲取IP地址信息
public void testIp(HttpServletRequest request) { String localAddr = request.getLocalAddr(); int localPort = reques
原创 java 實現 AES 加密 解密
import org.apache.commons.codec.binary.Base64; public class AESUtil { // 加密 public static String Encrypt(St
原创 局部刷新
參考: https://mp.weixin.qq.com/s?__biz=MzUxMzk2NjEzNA==&mid=2247483689&idx=1&sn=5552bde1cf4cc88406c4ebe2e04f70c1&chksm=f
原创 阿里雲域名綁定指定服務器IP
1. 在當前服務器上查看本機公網IP 2. 登錄阿里雲 並找到域名 菜單 3. 選擇要解析的域名, 選擇 解析 按鈕 4. 選擇添加記錄 5. 選擇A 記錄類型, 配置要訪問的二級域名,輸入公網ip地址 其他默認即可 6.瀏覽
原创 記一次生產環境,java應用大內存問題的排查過程
1. top 一下發下,一個單一應用系統內存突然飆高(該系統 只每天 凌晨3點 和 19點的時候,會做一次跑批),其他時間段沒有任何調度 2. free -m 查看系統內存剩餘不多 3. 執行 jmap -dump:live,form
原创 使用這則表達式去掉空行
\n[\s| ]*\r
原创 com.alibaba.dubbo.rpc.RpcException: No provider available from
1.沒有找到生產者 com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service .... , p
原创 System.gc() 和 Runtime.getRuntime().gc()
1. ̵System.gc() 底層就是調用的 Runtime.getRuntime().gc() public static void gc() { Runtime.getRuntime().gc(); } 2.
原创 insert into table 多條數據插入
INSERT INTO item_roles (item_id,role_id,created_at) SELECT 66, role_id,now() FROM item_roles where item_id = 22