原创 gradle配置springboot和jsp集成
springboot+gradle集成jsp必須保證 apply plugin: 'war' apply plugin: 'spring-boot' compile("org.apache.tomcat.embed:tomcat-e
原创 Mybatis3.4.x技術內幕源碼分析
https://my.oschina.net/zudajun?tab=newest&catalogId=3532897
原创 maven/gradle下載kie-api-6.5.0.Final依賴出錯解決辦法
最近學習規則流開發,下面幾個jar在idea無論是用maven還是gradle下載依賴後總是出錯 kie-api-6.5.0.Final.jar、drools-compiler-6.5.0.Final.jar、kie-spring-6.5
原创 mysql5.5報錯-there can be only one TIMESTAMP column
在mysql5.5如果導入如下sql: CREATE TABLE `order_detail` ( `detail_id` varchar(32) NOT NULL, `order_id` varchar(32) NOT NUL
原创 讀取resources目錄下文件方式
//spring方式 Resource resource = new ClassPathResource("application.properties"); String path =
原创 oracle創建package、body、函數
--刪除表 drop table appl_application_sbfp; drop table sys_user_info; --創建表和主鍵 CREATE TABLE appl_application_sbfp ( a
原创 Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win3
由於網速原因,執行npm install命令過程中,node-sass無法下載,那麼可以使用淘寶鏡像下載,具體命令如下: npm i node-sass --sass_binary_site=https://npm.taobao.org
原创 海量數據求中位數
題目如下:只有2G內存的pc機,在一個存有10G個整數的文件,從中找到中位數,寫一個算法。 給出了四種方法來解決 算法: 1.利用外排序的方法,進行排序 ,然後再去找中位數註釋:外部排序基本上由兩個相對獨立的階段組成。首先,按可用內存大小
原创 springboot配置pagehelper5.0和4.0版本的區別
springboot配置pagehelper5.0和4.0版本的區別 pagehelper5.0使用的攔截器是PageInterceptor,pagehelper4.0使用的攔截器是PageHelper;而且5.0的版本去除了sq
原创 計算兩個日期之間的月份數(向下取整)
import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class ComputeMonth {
原创 form表單提交FromData數據
代碼見https://gitee.com/bladeandmaster/freemarkerDemo 1、第一種直接使用form表單的submit提交 2、第二種採用ajax提交,需要設置contentype:"application/x
原创 springMVC接收json數組的三種方式
代碼見https://gitee.com/bladeandmaster/freemarkerDemo 1、第一種,後端採用String接收 $("#confirm1").click(function (){ var jsonAr
原创 oracle創建存儲過程
1、in模式參數 --創建存儲過程 CREATE OR REPLACE PROCEDURE print(p1 IN INT,p2 IN INT) --參數的個數、類型可以自定義,但是參數不允許指定長度 AS BEGIN dbms_
原创 new Date().toSting()會使得天數加1
Date date = new Date();//比如當前日期是20190504 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd"); Strin
原创 java將當前時間轉換成xxxx年xx月xx天
package com.pingan.core.testdemo; import java.text.ParseException; import java.text.SimpleDateFormat; import java.uti