原创 Activiti使用oracle數據庫部署流程實例啓動流程實例報錯
create table ACT_GE_PROPERTY ( NAME_ NVARCHAR2(64), VALUE_ NVARCHAR2(300), REV_ INTEGER, primary key (NAME_) ) jav
原创 C# 請按任意鍵繼續,一閃退出
C# 控制檯程序,點Ctrl+F5,不是直接點運行,就會出現 請按任意鍵繼續。 如果之間點運行,就會一閃退出。
原创 arget runtime Apache Tomcat v8.0 is not defined
導入的別人的項目,報Target runtime Apache Tomcat v8.0 is not defined.錯誤, 但是已經把項目的java building Path改成了本機的 tomcat版本,還是有紅叉。 後來發
原创 VS項目屬性頁內容不一樣
VS項目屬性頁內容不一樣 VS項目屬性頁內容不一樣 網上很多關於項目屬性設置的截圖,發現跟我的不一樣,後來發現,我的是C#項目,截圖是這樣的。 新建一個 C++項目,想屬性截圖是這樣的 不同語言的項目,項目屬性頁是不一樣的。
原创 request method 'post' not supported Rest Delete put 方式404,405錯誤
測試rest風格 Delete, PUT 訪問的時候報錯。request method 'post' not supported 後來發現在web.xml中沒有添加HiddenHttpMethodFilter過濾器,添加過濾器的代碼如下
原创 java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testupdate
junit4測試的時候,測試函數不能有參數,有參數就會報錯。 也不能有範圍值,函數類型必須是void。 java.lang.Exception: No tests found matching [{ExactMatcher:fDispla
原创 使用@Autowired 自動裝載,報java.lang.NullPointerException錯誤
使用@Autowired 自動裝載,但是報java.lang.NullPointerException錯誤, 後來測試,發現如下圖所示,jdbcTemplate輸出爲null 經反覆研究發現,自動裝載並沒有把配置文件中配置的bean
原创 Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC
Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986在使用Tomcat8.5調試的
原创 WEB-INF文件夾下的文件是無法通過地址欄訪問的
WEB-INF文件夾下的文件是無法通過地址欄訪問的 默認情況下,是不能訪問的。可以訪問WebContent文件夾下面的文件。
原创 JSP亂碼問題
在JSP文件post提交後,接收到參數有亂碼,雖然JSP文件加了相關配置, <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding=
原创 java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException
這兩天程序一直報錯,下面這個錯誤 java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException at org.springframewor
原创 Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils
在編譯的時候沒有錯誤,但是 用 Junit Test的時候,報下面的錯誤。 java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jd
原创 Type mismatch affecting row number 0 and column type 'NUMBER'
test程序報錯,Type mismatch affecting row number 0 and column type 'NUMBER' is of type [java.lang.Long] and cannot be conver
原创 Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be
今天測試使用JdbcTemplate,報錯,報錯內容如下: Multiple markers at this line - The type org.springframework.dao.DataAccessExceptio
原创 springsource_tool_suite的安裝
springsource_tool_suite的安裝 要用Spring框架進行開發,需要在eclipse上面安裝spring插件,從昨天開始到今天上午一直安裝不上,後來發現了問題所在。要安裝成功,需要注意幾點: 1 springsourc