项目介绍:

本系统采用springboot框架,数据层采用mybatis,数据库使用mysql,功能包含前台和后台,比如心理文章查看、留言、测评、公告等,后台维护所有信息,具体功能实现可以建议看下方的演示视频,系统适合于基础一般的同学使用。

项目技术:

后端:springboot、mybatis
前端:layui、js、css、ajax,thymeleaf等,html页面
开发工具:idea
数据库:mysql 5.7
JDK版本:jdk1.8
服务器:tomcat8

部分功能展示:

首页

基于springboot的在线心理测评系统_javaweb

心理咨询文章

基于springboot的在线心理测评系统_前端_02

查看公告:

基于springboot的在线心理测评系统_后端_03

 留言:

基于springboot的在线心理测评系统_前端_04

 后台-文章列表

基于springboot的在线心理测评系统_java_05

 后台-添加文章

基于springboot的在线心理测评系统_javaweb_06

 后台-测评题目管理

基于springboot的在线心理测评系统_javaweb_07

 后台-测评维护

基于springboot的在线心理测评系统_前端_08

 后台-查看留言

基于springboot的在线心理测评系统_java_09

 后台-用户维护

基于springboot的在线心理测评系统_后端_10

 部分代码:

/**
     * 留言列表
     *
     * @param page
     * @param limit
     * @param model
     * @return
     */
    @RequestMapping("/leacotsUi")
    public String clientArticleUi(@RequestParam(value = "page", defaultValue = "1") Integer page,
                                  @RequestParam(value = "limit", defaultValue = "10") Integer limit, Model model) {
        PageHelper.startPage(page, limit);
        List<Leacot> leacots = leacotService.selectByList();
        PageInfo info = new PageInfo(leacots);
        model.addAttribute("leacotsInfo", info);
        model.addAttribute("leacots", info.getList());
        //共享数据
        return "client/html/leacots";
    }


    /**
     * 用户留言
     *
     * @param data
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/leacots/save", method = RequestMethod.POST)
    public Map<String, Object> saveLeacot(@RequestBody JSONObject data) {
        Map<String, Object> mapData = new HashMap<>();
        boolean isSuccess = false;
        JSONObject json = JSON.parseObject(data.toJSONString());
        //获取用户的留言内容
        String desc = json.getString("desc");
        //关联id
        int indexId = 4;
        //生成一条默认的用户评论
        Reply reply = new Reply();
        reply.setReplyContent("亲,管理员在快马加鞭的回复您!");
        reply.setReplyTime(new Date());
        reply.setReplyUser("管理员");
        reply.setId(indexId);
        boolean insertReply = replyService.insert(reply);
        if (insertReply) {
            Leacot leacot = new Leacot();
            //用户留言的内容
            leacot.setContent(desc);
            //用户留言时间
            leacot.setLeacotsTime(new Date());
            //默认后台没有回复
            leacot.setStatus(0);
            //在Session中获取
            leacot.setLeacotsUser(LoginSession.getCurrentUser().getUsername());
            //生成关联
            leacot.setReplyId(reply);
            boolean insertLeacot = leacotService.insert(leacot);
            isSuccess = true;
            mapData.put("success", isSuccess);
            //维护一下关联ID保证每一次进来的大于上一次的ID
            indexId++;
            return mapData;
        }

        mapData.put("success", isSuccess);
        return mapData;

    }

以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,而且也与当前的热点话题关联,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,比较适合毕业设计和课程设计的相关应用。

好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~