原创 Thymeleaf 頁面中將long轉換爲日期格式

    <td th:text="${#dates.format(new java.util.Date(activity.loggedTimestamp))}"></td> 參考: https://stackoverflow.com/a

原创 You have an error in your SQL syntax check the manual that corresponds to your MySQL server version

“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syn

原创 SpringBoot Consider defining a bean of type 'com.xxx.xxx.dao.UserDao' in your configuration.

SpringBoot  遇到的問題 遇到錯誤提示 required a bean of type 'com.xxx.xxx.dao.UserDao' that could not be found. 但是查看使用UserDao的UserC

原创 CentOS7 安裝 Nexus

CentOS7 安裝 Nexus 文章目錄CentOS7 安裝 Nexus1. 下載 Nexus2. 解壓 Nexus 文件3. 移動文件到指定目錄下4. 添加Nexus用戶組並且設置文件所屬用戶組5. 切換用戶並且啓動Nexus

原创 Tomcat9 在Windows Server啓動不了

Tomcat 在Windows Server啓動不了 背景 1. 系統環境 騰訊雲 Windows Server 2016 JDK : JDK8 2. 現象: 點擊startup.bat時,tomcat命令行窗口一閃而過 ,而

原创 解決SpringBoot更新數據到MySQL亂碼問題

原因,數據庫沒有采用UTF-8編碼,而是big5_chinese_ci,僅僅只是把數據表的字符編碼改爲UTF-8也不起作用,需要把整個數據庫的編碼改爲UTF-8.   表  操作 行數  類型 排序規則 大小 多餘   transacti

原创 Sonarqube duplicated blocks of code must be remove

Sonarqube duplicated blocks of code must be remove(Source files should not have any duplicated blocks) 解決辦法1: 在UI上面

原创 sonarqube sonar code coverage excludsion

博客文章鏈接:http://ioejr.com/index.php/2019/08/08/sonarqube-sonar-code-coverage-excludsion/ 1. 不需要統計測試覆蓋率的文件可以在pom.xml文件裏面使用

原创 docsify 安裝

#docsify 安裝   ##前置條件:安裝node   ## 全局安裝docsify-cli [root@VM_0_10_centos docsify]# npm i docsify-cli -g /www/server/nvm/v

原创 intellij idea 設置顯示空格

intellij idea 設置顯示空格 點擊菜單 File -> Settings 在彈出的窗口點擊 Editor -> General -> Appearance 把Show whitespaces 勾選上就行。

原创 Eclipse 啓動時顯示Java was started but returned exit code=13

Eclipse啓動時顯示Java was started but returned exit code=13 原因 JDK版本與Eclipse不一致,例如JDK安裝的時i586,但是Eclipse下載的時x64; 解決辦法 (1)

原创 CentOS使用yum安裝Docker-Ce 18.09

CentOS使用yum安裝Docker-Ce 18.09 配置Docker yum 源 [root@VM_0_10_centos ~]# yum-config-manager --add-repo https://download

原创 Windows 安裝MySQL 5.7 登錄時出現 mysql ERROR 1045  denied for user 'root'@'localhost' (using password)

一 問題描述 windows下安裝MySQL 5.7.24 ,然後使用mysql -u root -p登陸數據庫 此時會報ERROR 1045 (28000): Access  denied for user 'root'@'localh

原创 Ubuntu安裝JDK(使用apt-get)

1. 搜索使用apt-get可以安裝的jdk apt-cache search openjdk 2. 選擇並安裝需要的版本 sudo apt-get install openjdk-8-jdk 3. 檢查是否安裝成功 java -v

原创 Apache配置多個端口使得可以訪問多個項目,適用於寶塔面板

1. 增加Apache的監聽端口,可以通過修改ApacheHome/conf/httpd.conf文件 實現 # # Change this to Listen on specific IP addresses as shown bel