资源简介

使用IntelliJ IDEA编写,gradle,有数据库文件,非常完整的管理系统,适合毕业设计

资源截图

代码片段和文件信息

package com.itheima.common.utils;
import java.io.IOException;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
/**
 * 显示格式:首页 上一页 1 2 3 4 5下一页 尾页
 */
public class NavigationTag extends TagSupport {
static final long serialVersionUID = 2372405317744358833L;
/**
 * request 中用于保存Page 对象的变量名默认为“page”
 */
private String bean = “page“;
/**
 * 分页跳转的url地址此属性必须
 */
private String url = null;
/**
 * 显示页码数量
 */
private int number = 5;

@Override
public int doStartTag() throws JspException {
JspWriter writer = pageContext.getOut();
HttpServletRequest request = 
(HttpServletRequest) pageContext.getRequest();
Page page = (Page) request.getAttribute(bean);
if (page == null)
return SKIP_BODY;
url = resolveUrl(url pageContext);
try {
// 计算总页数
int pageCount = page.getTotal() / page.getSize();
if (page.getTotal() % page.getSize() > 0) {
pageCount++;
}
writer.print(““);
} catc

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-05 09:04  Chapter18\
     目录           0  2018-06-05 09:03  Chapter18\.gradle\
     目录           0  2018-06-05 09:00  Chapter18\.gradle\3.5-rc-2\
     目录           0  2018-06-05 09:00  Chapter18\.gradle\3.5-rc-2\file-changes\
     文件           1  2018-06-12 10:42  Chapter18\.gradle\3.5-rc-2\file-changes\last-build.bin
     目录           0  2018-06-05 09:00  Chapter18\.gradle\3.5-rc-2\taskHistory\
     文件       18697  2018-06-04 11:22  Chapter18\.gradle\3.5-rc-2\taskHistory\fileHashes.bin
     文件       18934  2018-06-04 11:22  Chapter18\.gradle\3.5-rc-2\taskHistory\fileSnapshots.bin
     文件       19415  2018-06-04 11:22  Chapter18\.gradle\3.5-rc-2\taskHistory\taskHistory.bin
     文件          17  2018-06-12 10:42  Chapter18\.gradle\3.5-rc-2\taskHistory\taskHistory.lock
     目录           0  2018-06-05 09:03  Chapter18\.gradle\4.5.1\
     目录           0  2018-06-05 09:04  Chapter18\.gradle\4.5.1\fileChanges\
     文件           1  2018-06-05 09:04  Chapter18\.gradle\4.5.1\fileChanges\last-build.bin
     目录           0  2018-06-05 09:03  Chapter18\.gradle\4.5.1\fileHashes\
     文件       18597  2018-06-05 09:04  Chapter18\.gradle\4.5.1\fileHashes\fileHashes.bin
     文件          17  2018-06-05 09:04  Chapter18\.gradle\4.5.1\fileHashes\fileHashes.lock
     目录           0  2018-06-05 09:00  Chapter18\.gradle\buildOutputCleanup\
     文件           0  2018-06-04 11:22  Chapter18\.gradle\buildOutputCleanup\built.bin
     文件          56  2018-06-04 11:22  Chapter18\.gradle\buildOutputCleanup\cache.properties
     文件           2  2018-06-12 10:42  Chapter18\.gradle\buildOutputCleanup\cache.properties.lock
     目录           0  2018-06-05 09:04  Chapter18\.gradle\vcsWorkingDirs\
     文件           0  2018-06-05 09:04  Chapter18\.gradle\vcsWorkingDirs\gc.properties
     目录           0  2018-06-13 17:22  Chapter18\.idea\
     目录           0  2018-06-05 09:04  Chapter18\.idea\artifacts\
     文件         473  2018-06-05 09:04  Chapter18\.idea\artifacts\Gradle___Chapter18_1_0_SNAPSHOT_war.xml
     文件        4403  2018-06-05 09:04  Chapter18\.idea\artifacts\Gradle___Chapter18_1_0_SNAPSHOT_war__exploded_.xml
     文件         286  2018-06-05 09:04  Chapter18\.idea\compiler.xml
     文件         670  2018-06-05 09:04  Chapter18\.idea\gradle.xml
     目录           0  2018-06-05 09:09  Chapter18\.idea\inspectionProfiles\
     目录           0  2018-06-12 10:45  Chapter18\.idea\libraries\
     文件         570  2018-06-12 10:45  Chapter18\.idea\libraries\Gradle__junit_junit_4_12.xml
............此处省略301个文件信息

评论

共有 条评论