• 大小: 2.37MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-09
  • 语言: Java
  • 标签: 网上书店  

资源简介

基于javaweb和mysql的网上书店MVC,适合用于学习

资源截图

代码片段和文件信息

package book_shop.base;


import java.io.IOException;
import java.lang.reflect.Method;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class baseServlet extends HttpServlet {

@Override
protected void service(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
request.setCharacterEncoding(“utf-8“);
response.setCharacterEncoding(“utf-8“);
String methodName = request.getParameter(“method“);

try {
Method method = this.getClass().getDeclaredMethod(methodNameHttpServletRequest.classHttpServletResponse.class);
method.invoke(this requestresponse);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-06-20 16:02  book_shop\
     文件         986  2017-06-20 16:02  book_shop\.classpath
     文件         909  2017-06-20 16:02  book_shop\.project
     目录           0  2017-06-20 16:02  book_shop\.settings\
     文件         567  2017-06-20 16:02  book_shop\.settings\.jsdtscope
     文件          49  2017-06-20 16:02  book_shop\.settings\org.eclipse.core.resources.prefs
     文件         670  2017-06-20 16:02  book_shop\.settings\org.eclipse.jdt.core.prefs
     文件         117  2017-06-20 16:02  book_shop\.settings\org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
     文件         106  2017-06-20 16:02  book_shop\.settings\org.eclipse.ltk.core.refactoring.prefs
     文件         479  2017-06-20 16:02  book_shop\.settings\org.eclipse.wst.common.component
     文件         345  2017-06-20 16:02  book_shop\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-06-20 16:02  book_shop\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-06-20 16:02  book_shop\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          87  2017-06-20 16:02  book_shop\.settings\org.eclipse.wst.ws.service.policy.prefs
     目录           0  2017-06-20 16:02  book_shop\build\
     目录           0  2017-06-20 16:02  book_shop\build\classes\
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\base\
     文件        1553  2017-06-20 16:02  book_shop\build\classes\book_shop\base\baseServlet.class
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\book\
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\book\bean\
     文件        2152  2017-06-20 16:02  book_shop\build\classes\book_shop\book\bean\Book.class
     文件        1527  2017-06-20 16:02  book_shop\build\classes\book_shop\book\bean\Page.class
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\book\dao\
     文件         940  2017-06-20 16:02  book_shop\build\classes\book_shop\book\dao\BookDao.class
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\book\dao\impl\
     文件        7063  2017-06-20 16:02  book_shop\build\classes\book_shop\book\dao\impl\BookDaoImpl.class
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\book\service\
     文件         819  2017-06-20 16:02  book_shop\build\classes\book_shop\book\service\BookService.class
     目录           0  2017-06-20 16:02  book_shop\build\classes\book_shop\book\service\impl\
     文件        3045  2017-06-20 16:02  book_shop\build\classes\book_shop\book\service\impl\ServiceImpl.class
............此处省略188个文件信息

评论

共有 条评论