原创 springboot 1.x同時支持http&https

1、yml server: port: 8181 https: port: 8282 ssl: key-store: classpath:sample.jks key-store-password: sec

原创 mybatis插件攔截自動物理分頁(jsqlparser)

1、sql解析組件 <dependency> <groupId>com.github.jsqlparser</groupId> <artifactId>jsqlparser</artifactId> <version>1.

原创 spring請求生命週期

web.xml <servlet> <servlet-name>appServlet</servlet-name> <servlet-class>org.springframework.w

原创 skywalking寫es開啓異步寫入

org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.StorageEsInstaller 在createSetting方法添加如下es設置 //cust

原创 shardingSphere分庫分表,讀寫分離

分庫分表&主從  <sharding:inline-strategy id="databaseStrategy" sharding-column="id" algorithm-expression="smart_$->{id%2

原创 自動掃描應用指定類的子類

ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);

原创 mybatis插件-自動更新updateTime

@Intercepts({@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})}) publ

原创 zk臨時節點動態獲取連續id

public class SnowflakeZookeeperHolder { private static final Logger LOGGER = LoggerFactory.getLogger(SnowflakeZook

原创 ubuntu 安裝redis-php

1、wget --no-check-certificate http://github.com/nicolasff/phpredis/tarball/master -O phpredis.tar.gz 2、tar zxvf phpredi

原创 mybatis插件實現自定義改寫表名

@Intercepts({@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBound

原创 mybatis插件攔截自動物理分頁(Druid)

@Intercepts({@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBound

原创 skywalking架構剖析

1、segment類關係 2、agent加載過程 3、agent發送數據到存儲過程    

原创 skywalking6.2升級到6.5

1、需要把之前數據複製到新索引,涉及到索引有 es查看: curl -s localhost:9210/_cat/indices |grep sw |grep -v "2019" network_address_inventory ser

原创 es常見命令

1、查詢task curl -XGET "localhost:9210/_tasks?detailed=true&actions=*/delete/byquery&pretty" 2、取消task curl -X POST "localh

原创 用java寫http server時候關於favicon.ico問題

       這幾天在研究java的一個開發框架grizzly時候,在處理瀏覽器發送過來的請求時候,每次都會多一次請求,發現多請求的uri爲/favicon.ico,然後通過telnet模擬http請求,發現並不會添加這一請求,看來是瀏覽