原创 Spring4+dbcp+mysql6.06使用註解實現動態切庫(不支持跨庫事務)

maven依賴 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/

原创 FlyDB

Philosophy There are a variety of ways how jOOQ and Flyway could interact with each other in various development se

原创 跨域請求解決方案

什麼是跨域? 跨域,指的是瀏覽器不能執行其他網站的腳本。它是由瀏覽器的同源策略造成的,是瀏覽器對javascript施加的安全限制。 跨域的形式:域名不同,協議不同(http,https) 解決方法: 1、前端跨域請求 2、

原创 使用RabbitMQ實現延遲任務(轉載)

https://www.cnblogs.com/haoxinyue/p/6613706.html

原创 Flume (九) Channels - Kafka Channel

事件存儲在Kafka羣集中(必須單獨安裝)。 Kafka提供高可用性和複用(high availability and replication),因此如果代理或kafka代理崩潰,事件可立即用於其他接收器. Kafka channel 可

原创 Apache 學習筆記 - 使用mod_rewrite進行URL重定向和重新映射(Using mod_rewrite for redirection and remapping of URLs)

http://httpd.apache.org/docs/2.4/en/rewrite/remapping.html 使用mod_rewrite重定向和重映射(Redirecting and Remapping with mod_rewr

原创 Flume (二) Setup

Setup Setting up an agent Flume代理配置存儲在本地配置文件中。 這是一個遵循Java屬性文件格式的文本文件。 可以在同一配置文件中指定一個或多個代理的配置。 配置文件包括代理中每個Source,Sink和Ch

原创 Flume (五) Channel Selectors

Flume Channel Selectors 如果未指定類型,則默認爲“replicating”。 Replicating Channel Selector (default) 必需屬性以粗體顯示。 Property Name D

原创 Mockito Mock vs. Spy in Spring Boot Tests

原文:https://dzone.com/articles/mockito-mock-vs-spy-in-spring-boot-tests I have met many developers who refer to tests a

原创 Flume (十) Sources - Kafka Source

Kafka Source是一個Apache Kafka消費者,它從Kafka主題中讀取消息。 如果您正在運行多個Kafka Source,可以爲這些Source配置相同的消費者組(Consumer Group),以便每個Source都讀取

原创 Flume (七) Monitoring

Flume中的監控仍在進行中。 變化可能經常發生。 幾個Flume組件向JMX平臺MBean服務器報告度量標準。 可以使用Jconsole查詢這些指標。 JMX Reporting 可以通過使用flume-env.sh在JAVA_OPTS

原创 Flume (六) Interceptors

Flume has the capability to modify/drop events in-flight. This is done with the help of interceptors. Interceptors are

原创 Apache 學習筆記 - 配置部分(Configuration Sections)

http://httpd.apache.org/docs/2.4/en/sections.html 配置文件與指令: 配置文件位置 apache/conf 默認配置文件:httpd.conf, 配置文件拆分,通過Include指令

原创 Flume (三) Configuration

Configuration 正如前面部分所述,Flume代理程序配置是從類似於具有分層屬性設置的Java屬性文件格式的文件中讀取的。 Defining the flow 要在單個代理中定義流,您需要通過channel連接sources 和

原创 Flume (八) Sources

Avro Source 監聽Avro端口並從外部Avro客戶端流接收事件。 當與另一個(previous hop)Flume代理上的內置Avro Sink配對時,它可以創建分層集合拓撲。 必需屬性以粗體顯示。 屬性名稱 默認值 描述