原创 springboot+mybaties(多數據源)後臺管理系統
採用springboot2.0.3+mybaties(多數據源) 請留言
原创 ElasticSearch linux安裝
安裝版本:6.2.2 解壓安裝Elasticsearch 下載elasticsearch 上傳到Linux服務器(上傳到了/usr/local下) 解壓 unzip elasticsearch-6.2.2.zip 修改配置文件 進入/us
原创 spring包的作用解析
spring依賴包 一、包的詳解: Spring 3.1的jar包和以前的不一樣,新版本的jar包把原來的包分解了,功能分工很明確: org.springframework.aop-3.1.1.RELEASE.jar ---- -
原创 comment_templates.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="fieldcomment_con
原创 UrlRewriteFilter url過濾
1.下載urlrewrite-3.2.0.jar 2.web.xml配置如下: <filter> <filter-name>UrlRewriteFilter</filter-name> <fi
原创 format_templates.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <profiles version="12"> <profile kind="CodeFormatterProfile" nam
原创 線程執行
關於線程執行方法: 在方法裏執行threadPool.submit(new TellBreaksSuccessTask(rep)); 其中threadPool是注射進來的或自己設置, TellBreakSuccessTask是自己定義的
原创 反射獲取屬性名和屬性值
Map<String,Object> map = new HashMap<String,Object>(); Be
原创 Preconditions判斷條件的使用...
1 .checkArgument(boolean) : 功能描述:檢查boolean是否爲真。 用作方法中檢查參數 失敗時拋出的異常類型: IllegalArgumentException 2.checkNotNull(T):
原创 logback.xml日誌文件
<?xml version="1.0" encoding="UTF-8" ?> <configuration scan="true" scanPeriod="1800 seconds" debug="false"> <pro
原创 code_templates.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="constructorbody_
原创 ThreadLocal
public class SequenceNumber { //①通過匿名內部類覆蓋ThreadLocal的initialValue()方法,指定初始值 private static Th
原创 FTP下載文件實例
import java.io.IOException; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPClientCon
原创 BeanUtils
public class BeanUtils extends org.apache.commons.beanutils.BeanUtils {static {ConvertUtils.register(n
原创 反射實現
package com.util.reflect; public class DoTest { public <T> T execute(Function<String, T> function)