原创 serialVersionUID的作用及生成方法
小結一下: 1 值的作用: 用於判斷序列化文件是否已經失效(過期)。 序列化的時候會把這個ID寫到文件裏。 讀的時候會把這個ID和代碼裏的ID比較,如果不一致,表示文件裏的已經失效。(will result in an InvalidCl
原创 zookeeper 啓動失敗
./zkServer.sh start ZooKeeper JMX enabled by default Using config: /home/xx/data260/zookeeper/zookeeper-3.4.12/bin/../
原创 ubuntu 虛擬機 Failed to start Raise network interfaces
通過 ifconig 和 ifconfig -a 對比是網卡沒有啓用,解決方法: sudo ifconfig ens33 up //啓用網卡,然後再通過 ifconfig -a 看,發現 沒有IP dhclient ens33 //
原创 tomcat JVM卡死調試方法記錄
ps -ef | grep tomcat 找到進程的PID jstack -l pid 查看堆棧信息
原创 Eclipse 快捷鍵記錄
Ctrl+Shift+R 快速打開文件
原创 jpa save 報錯,提示 xx.hibernate_sequence' doesn't exist
Solution 1: Put the string below in .application.properties spring.jpa.properties.hibernate.id.new_generator_mappings=
原创 新建項目SpringBootApplication無法引入的問題
問題: 解決方法: 檢查新項目的 pom.xml 中定義的 version 是否和舊項目不同。改成和舊項目保持一致之後,刷新項目,可解決問題。 <parent> <groupId>org.springframew
原创 Ubuntu18.04添加中文輸入法(圖文)
1.安裝語言包 System Settings–>Region&language->Manage installed languages–>Install/Remove Languages 選中chinese (simplified),點
原创 docker: exec: \"-p8888:8080\": executable file not found in $PATH"
>docker run 6a2f0448c63d -p8888:8080 docker: Error response from daemon: OCI runtime create failed: container_linux.go:
原创 docker-compose 啓動依賴 wait-for-it.sh 實例
說明 本文介紹了 tomcat 依賴於 mysql 的啓動的一個例子 使用 docker-compose + wait-for-it.sh 基礎知識 Dockerfile CMD 命令的作用 先看個例子: === Dockerfile =
原创 sprint-boot eclipse war tomcat 部署
參考: https://blog.csdn.net/zhoucheng05_13/article/details/77915294 https://blog.csdn.net/mameng1988/article/details/7994
原创 Java – Directory Size
https://stackoverflow.com/questions/2149785/get-size-of-folder-or-file/19877372#19877372 原文鏈接:http://www.baeldung.com
原创 ubuntu apache2 多域名
linode add a new linode sudo apt-get update // apt-get install 前 update sudo apt-get install apache2 綁定域名 1 vim /ec
原创 水波紋背景
android:background="?android:attr/selectableItemBackground"波紋有邊界 android:background="?android:attr/selectableItemBackg
原创 android studio 卡在 building gradle project info
/Users/user****/.gradle/wrapper/dists/gradle-xxxx/55gk2rcmfc6p2dg9u9ohc3hw9/ 這個目錄下出現 gradle-xxx.lck gradle-xxx.part ,