原创 eclipse新建maven webapp後無法添加src/main/java和src/main/test
1.eclipse->window>preferences->java->compiler->選擇本地要用的Java版本 2.eclipse->window>preferences->java->installJars->修改爲本地jd
原创 HTTP Status 500 - Servlet.init() for servlet springmvc threw exception
HTTP Status 500 - Servlet.init() for servlet springmvc threw exception type Exception report message Servlet.init()
原创 Maven項目下HttpServletRequest 或 HttpServletResponse需引用的依賴包
1.出錯 Maven項目下HttpServletRequest 或 HttpServletResponse需引用的依賴包:servlet-api.jar,並將scope設置爲provided。 2.pom.xml: <dependen
原创 Tomcat啓動超時問題Server Tomcat v7.0 Server at localhost
摘要: Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds . If the server requires more time, tr
原创 Apache Shiro Reference Documentation翻譯
I. Overview 1. Introduction 2. Tutorial 3. Architecture 4. Configuration II. Core 5.
原创 springmvc上傳圖片
1.多部件的解析器 <span style="white-space:pre"> </span><!-- 文件上傳 --> <bean id="multipartResolver" class="org.springframewo
原创 校驗器
1 <mvc:annotation-driven conversion-service="conversionService" validator="validator"></mvc:annotation-driven> <!-- 校驗
原创 demo--CRUD不完整的後臺
1 <%@ page contentType="text/html;charset=UTF-8" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt
原创 CentOS 6.x安裝NetCat和bug解決問題
1 Xshell 5 (Build 0655) Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved. Type `help' to learn ho
原创 第一創建Maven時候html提示錯誤(javax)
1. <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </
原创 進程--目錄結構
(小二)(小四5%)(小五50%) 2.1進程介紹 2.1.1進程模型 2.1.2進程的創建 2.1.3進程的終止 2.1.4進程的層次結構 2.1.5進程的
原创 常用查看Linux系統信息命令
系統 # uname -a # 查看內核/操作系統/CPU信息 # head -n 1 /etc/issue # 查看操作系統版本 # cat /proc/cpuinfo # 查看CPU信息 #
原创 一個4tab選項卡頁面(一個json)
1.cluster.html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-wid
原创 springmvc對RESTful支持
1.controller @RequestMapping("/itemsView/{id}") public @ResponseBody ItemsCustom itemsView(@PathVariable("id") Integ
原创 springmvc異常處理
1.springmvc異常處理-全局異常處理器開發 public class CustomException extends Exception { //異常信息 public String message; public