原创 計算超時或工作日 排除週末

最近做一個需求,計算一個工作人員處理一個流程需要花費的時間,排除週末處理時間,只算工作日處理時長,用來比對是否超時。以下用mysql函數的方日期式計算兩個之間工作日的時間差: BEGIN declare minutes INT; decl

原创 創建springboot項目時 application.properties 或者application.yml配置文件無提示

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</arti

原创 springboot+redis 緩存解決數據亂碼問題

package com.spring.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annot

原创 idea Error running 'xxxx類': Cannot start process, the working directory 'E:\xxx\xxx' does not exist

idea 創建的springboot工程,在其中的一個類中加入main方法去測試一些輸出,運行main方法時,報錯:Error running 'xxxx類': Cannot start process, the working dire

原创 springboot整合activiti源碼分析,自動化配置

最近研究springboot整合activiti是怎麼工作的,看了源碼來淺談自己的理解,如有不對的地方,希望看到這篇文章的朋友幫忙指出來,在此提前謝謝。 1.springboot整合activiti導入jar,我是基於maven創建的,直

原创 Idea遠程調試springmvc項目

第一步: 第二步: 第三步: 第四步:cd 到tomcat的bin目錄下 第五步:編輯catalina.sh 添加一行 CATALINA_OPTS="-Xdebug  -Xrunjdwp:transport=dt_socket,s

原创 springboot+reidis 發佈訂閱功能

1.創建reids的配置類 @Configuration public class redisConfig { /** * 定製redisTemplet 作用 存儲到redis中的對象以序列化的方式 * @

原创 解析body中的json字符串數據

public static String getResourceBody(HttpServletRequest request){ String str, wholeStr = ""; try{ Buf

原创 百度UEditor編輯文章,移動端適配問題

/** * 將文本中的相對地址轉換成對應的絕對地址 此方法用於百度UEditor圖片的 * @return */ public static String processImgSrc(String content,String b

原创 springboot 2.1.6 +百度Ueditor 單圖片上傳並回顯

1.applition.yml配置 2.將  config.json  放在resourse根路徑下 3.在實例化編輯器的html中 配置如下上傳圖片路徑,路徑爲圖片上傳的請求地址 4.圖片上傳請求路徑 5.編輯ueditor.c

原创 springboot整合druid

1.導入依賴 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <ver

原创 Idea +JRebel 熱部署破解

1.TeamUrl: http://139.199.89.239:1008/88414687-3b91-4286-89ba-2dc813b107ce 2.email:隨便填 3.點擊激活

原创 js 獲取basePath

var local = window.location; var curWwwPath = local.protocol+"//"+local.hostname; 顯示結果:http://localhost

原创 idea打jar包時 報錯D:\workspace\project\target\classes\processes\orderProcedure.bpmn (拒絕訪問)

解決方案: 選中項目 --->快捷鍵F4,彈出 修改一下output  Path:路徑解決問題  。 

原创 eclipse-emf for activiti 插件jar包下載

百度網盤地址:https://pan.baidu.com/s/1u8usL5qHplEsJKiWgmZViw 提取碼:ksnj