原创 win8.1安裝mysql時無法啓動服務

安裝完成之後啓動服務,然後說系統找不到指定的文件。 之前在win10上按照完全相同的步驟完全沒有這種問題,解決方案: 修改註冊表中的文件:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servi

原创 Maven項目pom.xml中Multiple annotations found at this line問題

pom.xml中的開頭<project>標籤提示錯誤,詳細信息Multiple annotations found at this line: -

原创 作業調度框架 Quartz 學習筆記

作業調度框架 Quartz 學習筆記 作業被安排在一個給定的觸發時運行。觸發器可以使用以下指令的接近任何組合來創建: 在一天中的某個時間(到毫秒) 在一週的某幾天 在每月的某一天 在一年中的某些日期 不在註冊的日曆中列出的特定日

原创 idea設置類和方法的註釋模版

生成類的註釋模版 目標是生成這樣的類註釋 Perferences --> Editor --> File and Code Templates, 在Files頁裏面有包括 Class/Interface/Enum等的模版。上面

原创 IntelliJ IDEA創建分支,合併到主分支

點擊右下角的Git:master --> New Branch創建分支。 (修改代碼之後)右鍵項目 --> Git --> Commit Directory,提交到本地倉庫。 提交之後,點擊Git:xxx(分支名稱) -->

原创 jsp報錯:Expecting "jsp:param" standard action with "name" and "value" attributes

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@page import="user.UserCheck"%> <html> <% if(UserChec

原创 tagsinput和typeahead使用指北

項目要實現一個功能,就是像添加關鍵字一樣添加人員,同時要做到預輸入查詢。於是就使用了bootstrap-tagsinput。 官方的example:Bootstrap Tags Input 然後我參考的是其中的typeahead案例,

原创 解決jsp中的Description Resource Path Location Type錯誤提示

當我們即便是把一個完整的項目導入到eclipse之後,也有可能會在jsp中出現類似於下面這樣兩種錯誤。 Description Resource Path Location Type Fragment "/xxx.jsp" was n

原创 The type xxx cannot be resolved. It is indirectly referenced from required .class files xxx

在eclipse中導入項目,出現以下兩種error Description Resource Path Location Type The project was not built since its build path is i

原创 The valid characters are defined in RFC 7230 and RFC 3986

jsp中正常的url鏈接被Tomcat調用的時候總是會莫名其妙在最後加上?{}這種字符,然後後臺也會報錯, 信息: Error parsing HTTP request header Note: further occurrence

原创 js控制input只能輸入兩位小數

/** 只能輸入2位小數 */ function checkNumber2(e,txt) { /* 獲取光標位置 */ var cursurPosition=0; if(txt.selectionStart){//非IE

原创 jQuery中find()和children()的區別

1:children及find方法都用是用來獲得element的子elements的,兩者都不會返回 text node,就像大多數的jQuery方法一樣。 2:children方法獲得的僅僅是元素一下級的子元素,即:immediat

原创 Tomcat啓動時卡在Initializing Spring FrameworkServlet 'springServlet'

在run模式下可以啓動,在debug模式下就卡在Initializing Spring FrameworkServlet 'springServlet'。可能是因爲斷點太多了,取消所有斷點。

原创 在Spring中爲Thread注入@Resource失效問題

在一個線程類中爲一個service對象添加@Resource註解。 public class CalculateThread extends Thread { @Resource private MyService myServi

原创 java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.CellStyle.setVerticalAlignment

在用easyExcel是遇到兩個錯誤: java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.CellStyle.setVerticalAlignment(Lorg/apac