Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

Netkiller Java 手札

Java, Servlet, JavaBean, Struts, Spring ...

Mr. Neo Chan, 陈景峯(BG7NYT)


中国广东省深圳市龙华新区民治街道溪山美地
518131
+86 13113668890


文档始创于2015-11-10

版权声明

转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。

文档出处:
http://netkiller.github.io
http://netkiller.sourceforge.net

微信扫描二维码进入 Netkiller 微信订阅号

QQ群:128659835 请注明“读者”

$Date: 2013-04-10 15:03:49 +0800 (Wed, 10 Apr 2013) $

关于《Netkiller Java 手札》

作者2002年开始在项目中使用Java,各种原因没有留下Java文档,2015因工作需要重新拾起Java并整理本文档。


目录

1. 自述
1.1. 系列文档
1.2. 作者简介
1.3. 写给读者
1.4. 文档下载
1. Java
1.1. JVM
1.1.1. 安装 Java 6
1.1.1.1. HeapDumpOnOutOfMemoryError
1.1.2. java-1.8.0-openjdk
1.1.3. -verbose:class 显示载入jar文件
1.1.4. java.io.tmpdir
1.2. System
1.2.1. user.dir
1.2.2. java.io.tmpdir
1.3. Properties
1.4. 类型
1.4.1. String 处理
1.4.2. ArrayList
1.4.3. String to Array
1.4.4. Array to String
1.4.5. string to timestamp
1.5. Network
1.5.1. URL
1.5.2. java.io.tmpdir
2. Build Tools
2.1. Apache Ant
2.1.1. Project
2.1.1.1. ant
2.1.1.2. environment
2.1.2. path
2.1.3. copy
2.1.4. javac
2.1.5. condition
2.1.6. exec
2.1.6.1. sshexec
2.1.7. if
2.1.8. macrodef
2.1.8.1. Git
2.1.8.2. Rsync
2.1.8.3. SSH
2.1.9. Javascript
2.1.10. FAQ
2.1.10.1. warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
2.2. Apache Ivy
2.2.1. Ivy Install
2.2.1.1. source code
2.2.1.2. apt-get
2.2.2. Test example
2.3. maven
2.3.1. 安装
2.3.1.1. Ubuntu
2.3.1.2. 源码安装
2.3.2. Maven 仓库
2.3.3. properties
2.3.4. dependencies
2.3.5. Maven 命令
2.3.5.1. clean
2.3.5.2. compile
2.3.5.3. package
2.3.5.4. install
2.3.6. copy-dependencies
2.4. Gradle
2.4.1. gradle 命令
2.4.1.1. tasks 列出任务
2.4.2. build.gradle
2.4.2.1. repositories
2.4.2.2. dependencies
2.4.2.3. jar
2.4.3. gradle.properties
2.4.3.1. 列出 properties
2.4.3.2. 自定义 gradle.properties
2.4.3.3.
2.4.3.4. System.properties
2.4.4. Example
3. JSP
3.1. 注释
3.2. request
3.2.1. sendRedirect
3.2.2. Form
3.3. page
3.3.1. Session
3.4. trimDirectiveWhitespaces
3.5. include
3.6. jsp
3.6.1. jsp:forward
3.7. JSTL(JavaServer Pages Standard Tag Library)
3.7.1. c:set
3.7.2. c:out
3.7.3. c:url
3.7.4. c:remove
3.7.5. c:import
3.7.6. c:if
3.7.7. c:choose
3.7.8. c:forEach
3.7.8.1. List 处理
3.7.8.2. Map 处理
3.7.9. JSTL fmt Tag setBundle Example
3.7.9.1. Language Package
3.7.9.2. fmt:message 变量
3.8. error-page
3.9. FAQ
3.9.1. http://www.netkiller.cn/test.html;jsessionid=7D25CE666FF437F2094AA945E97CEB37
4. Servlet
4.1. Example
5. JDBC
5.1. 安装 JDBC 包
5.2. MySQL
5.3. Oracle
5.3.1. SID
5.3.2. SERVICE_NAME
5.3.3. TNS
5.3.3.1.
5.3.4. Oracle RAC Cluster
5.4. FAQ
5.4.1. java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
5.4.2. Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
6. JSON (JavaScript Object Notation)
6.1. javax.json.*
6.1.1. Json 编码
6.1.2. Json 解码
6.1.3. URL获取Json
6.2. com.google.gson
6.2.1. map 处理
6.2.2. POJO
6.2.3. toJson
6.2.4. fromJson
6.2.5. JsonParser
7. WebSocket
7.1. Server
7.2. Client
8. AMQP(Advanced Message Queuing Protocol)
8.1. Send and Recv
8.2. direct
9. NoSQL
9.1. MongoDB
9.1.1. pom.xml
9.1.2. 插入操作
9.1.3. 读取操作
10. Apache Struts
10.1. struts.xml
10.1.1. include
10.2. Struts Tags
10.2.1. property
10.2.2. set
10.2.3. url
10.2.4. s:include
10.2.5. s:action
10.2.6. HTML Form
10.2.6.1. form
10.2.6.2. textfield
10.2.6.3. s:hidden
10.2.6.4. select
10.2.7. iterator
10.2.8. if elseif else
10.3. Action
10.3.1. redirect
10.3.2. redirectAction
10.3.3. JSON
10.3.3.1. enableGZIP 压缩传输
10.3.3.2. excludeProperties 排除 Properties
10.3.3.3.
10.3.4. 传递 Timestamp 变量
10.4. Ajax + JSON
10.4.1. GET/POST JSON
10.5. Json 内容展示
10.5.1. 禁止方法
10.5.2. 格式化日期
10.5.3. 重命名变量名
10.5.4. org.apache.struts2.json
10.6. Interceptor
10.6.1. Session
10.7. FAQ
10.7.1. Struts 怎样判断用户来自电脑还是移动设备
11. Spring Framework
11.1. Maven
11.2. Spring MVC configuration
11.3. Tomcat
11.4. Thymeleaf
11.4.1. Maven pom.xml
11.4.2. Spring 配置
11.4.3. controller
11.4.4. HTML5 Template
11.5. 集成 Mybatis
11.5.1. pom.xml
11.5.2. properties
11.5.3. dataSource
11.5.4. SqlSessionFactory
11.5.5. Mapper 扫描
11.5.6. Mapper 单一class映射
11.5.7. Service
11.5.8. 测试实例
11.6. Spring Data
11.6.1. Redis
11.6.1.1. pom.xml
11.6.1.2. springframework-servlet.xml
11.6.1.3. Controller
11.6.1.4. index.jsp
11.6.1.5. 测试
11.6.2. Spring Data MongoDB
11.6.2.1. pom.xml
11.6.2.2. springframework-servlet.xml
11.6.2.3. POJO
11.6.2.4. Controller
11.6.2.5. 查看测试结果
11.6.2.6. 条件查询
11.7. @Controller
11.7.1. @RequestMapping
11.7.1.1. @RequestMapping("/")
11.7.1.2. 映射多个URL
11.7.1.3. headers
11.7.2. @ResponseBody
11.7.2.1. 直接返回HTML
11.7.3. RequestMapping with Path Variables - @PathVariable
11.7.3.1. URL 参数传递
11.7.4. RequestMapping with Request Parameters - @RequestParam
11.7.4.1. HTTP GET
11.7.4.2. HTTP POST
11.7.5. ModelAndView
11.7.5.1. 变量传递
11.7.5.2. ModelMap 传递多个变量
11.7.5.3. redirect
11.7.5.4. ArrayList
11.7.5.5. HashMap
11.7.5.6. 传递对象
11.7.5.7.
11.7.6. @ModelAttribute
11.7.7. @Scheduled
11.7.8. HttpServletRequest / HttpServletResponse
11.8. Spring4 Restful
11.8.1. pom.xml
11.8.2. web.xml
11.8.3. springframework.xml
11.8.4. RestController
11.8.5. POJO
11.8.6. 测试
11.9. Using Spring’s form tag library
11.9.1. css
11.9.1.1. cssClass
11.9.1.2. cssStyle
11.9.1.3. cssErrorClass
11.9.2. cssClass
11.10. FreeMarker
11.11. FAQ
11.11.1. o.s.web.servlet.PageNotFound
11.11.2. HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
11.11.3. 同时使用 Thymeleaf 与 JSP
11.11.4. 排除静态内容
11.11.5. HTTP Status 406
12. MyBatis
12.1. Mybatis 入门
12.2. 接口注解
13. Apache Tiles
13.1. 配置 Tiles
13.1.1. Maven
13.1.2. web.xml
13.2. Template 配置模板
13.3. Struts tiles
14. Play
15. Software Development Kit
15.1. slf4j
15.2. log4j
15.2.1. 安装 Log4j
15.2.1.1. 手工安装
15.2.1.2. Maven
15.2.2. log4j 环境变量
15.2.3. Log4j Example
15.2.4. log4j.properties
15.3. Hessian
15.4. quartz-scheduler
15.5. Openfire
15.6. Cache
15.6.1. java memcached client
15.6.2. Jedis
15.6.2.1. 认证
15.6.2.2. jedis.keys
15.6.3. Ehcache
15.7. Redisson

范例清单

1.1. /etc/profile.d/java.sh
2.1. Maven properties
11.1. MyBatis
11.2. Spring Data Redis Example
11.3. Spring Data MongoDB - springframework-servlet.xml
15.1. memcached.java
comments powered by Disqus