原创 Sprint boot+Mybatis配置多數據源

t1爲mysql數據源,t2爲sqlserver數據源 通過配置,使com.example.demo.mapper.mysql下MYSQL的Mapper與classpath:mapper/mysql/.xml形成映射。 com.ex

原创 使用canal監視mysql庫表變化併發布到kafka

參考官方文檔 https://github.com/alibaba/canal/wiki/QuickStart https://github.com/alibaba/canal/wiki/Canal-Kafka-RocketMQ-

原创 MySQL 查詢一串連續字符串

參考:https://blog.csdn.net/qiuli_liu/article/details/81707562 SELECT @xi := @xi + 1 AS xc FROM ( SELECT 1 UNION SELE

原创 Spring Boot文件上傳

spring boot 2.0.5 要實現文件上傳並直接訪問(查看/下載) 配置靜態文件路徑 application.properties uploadPath=/opt/data1/uploads/ ## 上傳路徑設置爲靜態資源

原创 Spring Boot整合Spring Security

只開啓了簡單的登陸驗證 添加依賴 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-se

原创 mosquitto MQTT安裝測試

測試環境爲centOS 7 #安裝libwebsockets wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libwebsockets-1.7.5-1

原创 centOS下SQL SERVR的安裝

#參考鏈接:http://blog.51cto.com/gaowenlong/1903477 #首先再https://packages.microsoft.com/config/rhel/找到對應岑田OS版本的倉庫配置文件 curl

原创 libnids學習筆記

學習資料 [1]下載包內的doc/API.html,version:1.24 [2]http://blog.csdn.net/ningxiaowei2013/article/details/53035976 簡介 ​ libnids(

原创 Libpcap學習筆記

參考 [1]http://www.tcpdump.org/pcap.html [2]http://blog.csdn.net/lsg_down/article/details/78486614 [3]http://e-ghost.deus

原创 Gitlab安裝

entOS7安裝gitlab測試,參考地址https://about.gitlab.com/installation/#centos-7 安裝依賴 sudo yum install -y curl policycoreutils open

原创 hive簡易配置

需要提前配置好hadoop tar -zxvf apache-hive-2.3.1-bin.tar.gz mv apache-hive-2.3.1-bin /usr/local/hive echo export HIVE_HOME=/u

原创 spring+quartz實現定時任務

導入jar包 <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.3</version