原创 HTML+CSS+JS實現的小遊戲-"剪刀石頭布"

效果 代碼 。t1.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <li

原创 如何給chrome瀏覽器安裝插件,CRX_HEADER_INVALID

瀏覽器插件就是擴展瀏覽器功能的工具 以下以百度翻譯插件爲例,介紹如何給chrome瀏覽器安裝插件 第1步 下載插件 第2步 打開chrome瀏覽器的擴展程序(如圖) 第3步 把下載的插件的後綴由.crx改成.zip

原创 IDEA中Tomcat啓動不了 cannot load ......\System\tomcat\Tomcat_7_0_93_dubboservice_3\conf\server.xml

cannot load ......\System\tomcat\Tomcat_7_0_93_dubboservice_3\conf\server.xml 找不到tomcat的配置文件server.xml 解決 第一次給IDEA

原创 org.springframework.web.servlet.DispatcherServlet noHandlerFound 警告: No mapping for GET /user/find

三月 20, 2020 8:30:15 下午 org.springframework.web.servlet.DispatcherServlet noHandlerFound 警告: No mapping for GET /us

原创 寫${pageContext.request.contextPath}時idea無提示

由於項目中沒加入tomcat的lib(tomcat相關的jar) 添加方法

原创 IDEA中的Tomcat日誌亂碼

解決: 原因:未知

原创 MySQL 10038

①進入C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin ② 解決mysql服務啓動失敗: 根據錯誤信息判斷:mysql服務和某些服務衝突 ==>近一步判斷是端口衝突 排除端

原创 Java繼承的本質

爲什麼要研究java繼承的本質呢? 問題來自HttpServlet的源碼,簡化後就是下面的例子 父類: public class Parent { public void f1() { System.out.printl

原创 no suitable HttpMessageConverter found for response type(給RestTemplate添加自定義的HttpMessageConverter)

異常信息 nested exception is org.springframework.web.client.RestClientException: Could not extract response: no suitab

原创 db.properties中的key儘量加上前綴, Access denied for user 'Administrator'@'localhost' (using password: YES)

錯誤分析 ERROR SqlExceptionHelper Access denied for user 'Administrator'@'localhost' (using password: YES) 意思是:用戶

原创 坑:itext7無法識別編碼是160的字符

今天用itext生成pdf,莫名地出現了下面的錯誤 java.lang.NullPointerException at com.itextpdf.kernel.font.PdfType0Font.generateWidthsAr

原创 下載軟件速度很慢,如何解決

原因 與軟件所在的服務器距離很遠,導致網絡差 解決 例如下載jdk,搜索“jdk下載 鏡像” 原理 user直接訪問A的鏡像很快(因爲距離近) A的鏡像:可看成由A複製來的(即A的鏡像是A的副本)

原创 Cannot get Jedis connection,redis必須設置密碼才能被jedis遠程連接

org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is re

原创 java 二維數組 爲什麼行不可以省略

數組的長度是固定的,使用數組前必須指定長度 二維數組的長度就是行,所以二維數組的行不可省略 二維數組有x行,則該二維數組的長度是x int[][] arr = new int[10][]; System.out.p

原创 no suitable HttpMessageConverter found for response type

異常信息 nested exception is org.springframework.web.client.RestClientException: Could not extract response: no suitab