• 大小: 43.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: JavaScript
  • 标签: ss  jav  mysq  

资源简介

一个简单的论坛项目 SSM+jQuery+layUI,数据库在项目SQL文件夹内,使用前导入即可,开发环境 Idea,Tomcat。具体详见 https://blog.csdn.net/orochi1972/article/details/81151401

资源截图

代码片段和文件信息

package controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import model.Data;
import model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import service.ForumService;
import service.UserService;

import java.util.ArrayList;
import java.util.List;

@Controller
public class BoardManageController {
    @Autowired
    private UserService userService;
    @Autowired
    private ForumService forumService;
    @RequestMapping(value = “/board“method = RequestMethod.GET)
    @ApiOperation(value = “返回板块页面“httpMethod = “GET“)
    public String board(Model model) {
        model.addAttribute(forumService.getBoardMap());
        return “board“;
    }

    @RequestMapping(value = “/board/{boardId}“)
    @ApiOperation(value = “根据id获取板块“httpMethod = “GET“)
    public String boardIn(Model model @PathVariable int boardId@RequestParam(required = false defaultValue = “1“) Integer page) {
        PageHelper.startPage(page 5);
        List list=forumService.getBoardData(boardId);
        PageInfo p = new PageInfo<>(list);
        model.addAttribute(p);
        model.addAttribute(“boardId“ boardId);
        return “Inboard“;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-03 13:33  web-ssm\
     目录           0  2018-08-06 14:57  web-ssm\.idea\
     目录           0  2018-08-03 13:33  web-ssm\.idea\artifacts\
     文件         287  2018-07-03 15:55  web-ssm\.idea\artifacts\web_ssm_war.xml
     文件        6336  2018-08-03 13:33  web-ssm\.idea\artifacts\web_ssm_war_exploded.xml
     文件         626  2018-07-18 13:19  web-ssm\.idea\compiler.xml
     目录           0  2018-07-06 15:41  web-ssm\.idea\dataSources\
     文件         820  2018-07-06 15:45  web-ssm\.idea\dataSources.local.xml
     文件         893  2018-07-06 15:41  web-ssm\.idea\dataSources.xml
     文件       46797  2018-07-06 15:41  web-ssm\.idea\dataSources\e9bb74f3-e991-414e-9739-c87065c6ae9d.xml
     文件         256  2018-07-03 15:55  web-ssm\.idea\encodings.xml
     目录           0  2018-07-04 07:22  web-ssm\.idea\inspectionProfiles\
     文件         267  2018-07-04 07:22  web-ssm\.idea\inspectionProfiles\Project_Default.xml
     目录           0  2018-08-03 13:33  web-ssm\.idea\libraries\
     文件         514  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__aopalliance_aopalliance_1_0.xml
     文件         536  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__commons_codec_commons_codec_1_9.xml
     文件         539  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__commons_dbcp_commons_dbcp_1_2_2.xml
     文件         605  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__commons_fileupload_commons_fileupload_1_3_1.xml
     文件         503  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__commons_io_commons_io_2_4.xml
     文件         558  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__commons_logging_commons_logging_1_2.xml
     文件         525  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__commons_pool_commons_pool_1_3.xml
     文件         514  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__com_alibaba_fastjson_1_1_41.xml
     文件         522  2018-08-03 13:33  web-ssm\.idea\libraries\Maven__com_fasterxml_classmate_1_3_3.xml
     文件         644  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml
     文件         595  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_8_0.xml
     文件         623  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_8_0.xml
     文件         547  2018-07-18 13:19  web-ssm\.idea\libraries\Maven__com_github_jsqlparser_jsqlparser_1_0.xml
     文件         561  2018-07-18 14:55  web-ssm\.idea\libraries\Maven__com_github_pagehelper_pagehelper_5_0_3.xml
     文件         499  2018-08-03 13:33  web-ssm\.idea\libraries\Maven__com_google_guava_guava_18_0.xml
     文件         525  2018-07-03 15:55  web-ssm\.idea\libraries\Maven__com_sun_mail_javax_mail_1_5_0.xml
     文件         553  2018-08-03 13:33  web-ssm\.idea\libraries\Maven__io_springfox_springfox_core_2_7_0.xml
............此处省略637个文件信息

评论

共有 条评论