资源简介
此为《架构探险-从零开始写Java Web框架》的 全书源码,作者 黄勇。源码无错误,可运行。

代码片段和文件信息
package org.smart4j.chapter1;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(“/hello“)
public class HelloServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req HttpServletResponse resp) throws ServletException IOException {
DateFormat dateFormat = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss“);
String currentTime = dateFormat.format(new Date());
req.setAttribute(“currentTime“ currentTime);
req.getRequestDispatcher(“/WEB-INF/jsp/hello.jsp“).forward(req resp);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-04-16 23:31 smart-book-code\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\
文件 2898 2015-04-16 23:31 smart-book-code\smart-plugin-rest\pom.xm
目录 0 2019-01-02 16:04 __MACOSX\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\
文件 212 2015-04-16 23:31 __MACOSX\smart-book-code\smart-plugin-rest\._pom.xm
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\
目录 0 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\
文件 419 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\Rest.java
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\main\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\
目录 0 2019-01-02 16:04 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\
文件 212 2015-04-16 23:31 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\._Rest.java
文件 938 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\RestConfig.java
文件 212 2015-04-16 23:31 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\._RestConfig.java
文件 1959 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\RestServlet.java
文件 212 2015-04-16 23:31 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\._RestServlet.java
文件 3491 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\RestHelper.java
文件 212 2015-04-16 23:31 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\._RestHelper.java
文件 429 2015-04-16 23:31 smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\RestConstant.java
文件 212 2015-04-16 23:31 __MACOSX\smart-book-code\smart-plugin-rest\src\main\java\org\smart4j\plugin\rest\._RestConstant.java
............此处省略736个文件信息
- 上一篇:医院分诊管理系统
- 下一篇:SpringBoot-Web素材.rar
相关资源
- java 毕业设计 进销存管理系统 源码
- java图片浏览器跨平台运行程序与源码
- 微博系统(Java源码,servlet+jsp),适
- 美食天下项目Android版源码和Web版源码
- 基于Java的酒店管理系统源码(毕业设
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- 基于JSP的学生宿舍管理系统(源码 数
- mysql jsp网站源码下载
- 基于C/S架构考试系统(Java)
- java access 仓库管理系统 源码
- java实现的svn统计修改代码行数完整源
- 即时通讯系统JAVA源码
- Java记事本【源代码 实验报告】
- java简单的购物车实例程序
- Java版航空订票系统源码
- java GUI版汉诺塔源码
- Android手机连连看游戏源码
- 搜索引擎的研究与实现Java附源码
- java 原创 坦克大战 源码 带有详细注释
- jsp与SQL Server数据库实现的客户注册登
- java实现POS系统源码
- java多人五子棋源码
- JAVA计算器实验报告与源码
- java做的人事档案管理系统
- 贪吃蛇(java 源码 eclipse项目)
- 自动出题系统(java 课程设计)
- java制作360度全景页面的源码和脚本
- jsp实用教程(源码)
- Android蓝牙和Cors网络开发源码
评论
共有 条评论