资源简介

一个扁平化的bootstrap的后台管理模板,里面有bootstrap的ui库,只需要删除一些不需要的代码,就可以简单使用。后台使用的是ssm框架,maven项目

资源截图

代码片段和文件信息

package com.controller;

import com.pojo.Paper;
import com.service.PaperService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(“/paper“)
public class PaperController {
    @Autowired
    private PaperService paperService;

    @RequestMapping(“/allPaper“)
    public String list(Model model) {
        List list = paperService.queryAllPaper();
        model.addAttribute(“list“ list);
        return “allPaper“;
    }

    @RequestMapping(“toAddPaper“)
    public String toAddPaper() {
        return “addPaper“;
    }

    @RequestMapping(“/addPaper“)
    public String addPaper(Paper paper) {
        paperService.addPaper(paper);
        return “redirect:/paper/allPaper“;
    }

    @RequestMapping(“/del/{paperId}“)
    public String deletePaper(@PathVariable(“paperId“) Long id) {
        paperService.deletePaperById(id);
        return “redirect:/paper/allPaper“;
    }

    @RequestMapping(“toUpdatePaper“)
    public String toUpdatePaper(Model model Long id) {
        model.addAttribute(“paper“ paperService.queryById(id));
        return “updatePaper“;
    }

    @RequestMapping(“/updatePaper“)
    public String updatePaper(Model model Paper paper) {
        paperService.updatePaper(paper);
        paper = paperService.queryById(paper.getPaperId());
        model.addAttribute(“paper“ paper);
        return “redirect:/paper/allPaper“;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-31 09:46  xp\
     目录           0  2018-08-31 10:14  xp\.idea\
     目录           0  2018-08-31 09:44  xp\.idea\artifacts\
     文件         275  2018-08-31 09:44  xp\.idea\artifacts\xp_war.xml
     文件        3358  2018-08-31 09:44  xp\.idea\artifacts\xp_war_exploded.xml
     文件         616  2018-08-31 09:44  xp\.idea\compiler.xml
     文件         172  2018-08-31 09:44  xp\.idea\encodings.xml
     目录           0  2018-08-31 09:44  xp\.idea\inspectionProfiles\
     目录           0  2018-08-31 09:44  xp\.idea\libraries\
     文件         568  2018-08-31 09:44  xp\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_1.xml
     文件         547  2018-08-31 09:44  xp\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_1.xml
     文件         644  2018-08-31 09:44  xp\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
     文件         595  2018-08-31 09:44  xp\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_4.xml
     文件         623  2018-08-31 09:44  xp\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_4.xml
     文件         493  2018-08-31 09:44  xp\.idea\libraries\Maven__com_mchange_c3p0_0_9_5_2.xml
     文件         598  2018-08-31 09:44  xp\.idea\libraries\Maven__com_mchange_mchange_commons_java_0_2_11.xml
     文件         578  2018-08-31 09:44  xp\.idea\libraries\Maven__javax_servlet_javax_servlet_api_3_0_1.xml
     文件         510  2018-08-31 09:44  xp\.idea\libraries\Maven__javax_servlet_jsp_jsp_api_2_2.xml
     文件         473  2018-08-31 09:44  xp\.idea\libraries\Maven__javax_servlet_jstl_1_2.xml
     文件         462  2018-08-31 09:44  xp\.idea\libraries\Maven__junit_junit_3_8_1.xml
     文件         574  2018-08-31 09:44  xp\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_38.xml
     文件         500  2018-08-31 09:44  xp\.idea\libraries\Maven__org_mybatis_mybatis_3_4_4.xml
     文件         549  2018-08-31 09:44  xp\.idea\libraries\Maven__org_mybatis_mybatis_spring_1_3_1.xml
     文件         506  2018-08-31 09:44  xp\.idea\libraries\Maven__org_slf4j_slf4j_api_1_7_6.xml
     文件         609  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_aop_5_0_3_RELEASE.xml
     文件         623  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_beans_5_0_3_RELEASE.xml
     文件         637  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_context_5_0_3_RELEASE.xml
     文件         693  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_context_support_5_0_3_RELEASE.xml
     文件         616  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_core_5_0_3_RELEASE.xml
     文件         658  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_expression_5_0_3_RELEASE.xml
     文件         609  2018-08-31 09:44  xp\.idea\libraries\Maven__org_springframework_spring_jcl_5_0_3_RELEASE.xml
............此处省略561个文件信息

评论

共有 条评论