原创 mac上安裝expect 與 expect知識

https://blog.csdn.net/jw_xuezhixia/article/details/54144116 expect腳本以 #!/usr/bin/expect 開頭 常用後綴:expect腳本常以.exp或者.ex結

原创 linux 下載文件

使用nc管道 server: nc -4 -l 8087 < error.log client: nc 10.148.17.88 8087 > 123.log

原创 MyBatis 返回主鍵

如下: <insert id="insertSelective" parameterType="com.xx.xx.OrderBusinessPO"> <selectKey keyProperty="orderId" orde

原创 Spring Boot

排除一個bean(不加載某個bean) 比如臨時註釋掉某個bean @SpringBootApplication(exclude = {Xxx.class}) 或者 @EnableAutoConfiguration(exclude =

原创 Mac OS常用命令

whoami:查看當前用戶 groups // 查看當前用戶所屬組(Note:用戶所屬組可能有多個) groups user_name // 查看指定用戶所屬組 id -a user_name // 可以查到指定用戶所屬組更詳細的信息

原创 kafka

https://blog.csdn.net/lp284558195/article/details/80297208

原创 Spring的幾個annotation

@SpringBootApplication Indicates a @Configuration class that declares one or more @Bean methods and also trigger @Ena

原创 空指針異常,日誌打印中只顯示java.lang.NullPointerException,沒有stack trace

https://stackoverflow.com/questions/1076191/nullpointerexception-stack-trace-not-available-without-debug-agent

原创 如何做到高可用性

可以從以下三個方面努力: 努力做到不出故障(故障頻率要低) 1) 注意對下游的依賴 2) 注意自己的邏輯 3) 注意上游的調用 平均無故障時間(Mean Time Between Failures, MTBF):系統平均能夠運行多

原创 MyBatis #{} 和 ${}

<select id="select" parameterType="map" resultType="xxxModel"> select * from xxxTable

原创 Mybatis generator

http://www.mybatis.org/generator/quickstart.html

原创 Kafka

Topic Partition offset 消息存活時間 partition冗餘機制 Producer Consumer Group Consumer broker 隸屬同一個Topic的消息,被分散到多個Partiti

原创 主鍵 和 唯一索引 的區別

主鍵是一種約束; 唯一索引是一種索引 主鍵創建後一定包含一個唯一索引;但唯一索引不一定是主鍵 主鍵不允許空值;唯一索引允許

原创 關於分佈式鎖的幾篇文章

https://redis.io/commands/setnx https://redis.io/topics/distlock http://martin.kleppmann.com/2016/02/08/how-to-do-dist

原创 Garbage Collection

Garbage Collection Data of Interest The data of interest in garbage colleciton statistics are The garbage collector i