基于springboot的在线心理测评系统
項(xiàng)目介紹:
本系統(tǒng)采用springboot框架,數(shù)據(jù)層采用mybatis,數(shù)據(jù)庫(kù)使用mysql,功能包含前臺(tái)和后臺(tái),比如心理文章查看、留言、測(cè)評(píng)、公告等,后臺(tái)維護(hù)所有信息,具體功能實(shí)現(xiàn)可以建議看下方的演示視頻,系統(tǒng)適合于基礎(chǔ)一般的同學(xué)使用。
項(xiàng)目技術(shù):
后端:springboot、mybatis
前端:layui、js、css、ajax,thymeleaf等,html頁(yè)面
開發(fā)工具:idea
數(shù)據(jù)庫(kù):mysql 5.7
JDK版本:jdk1.8
服務(wù)器:tomcat8
部分功能展示:
首頁(yè)
心理咨詢文章
查看公告:
?留言:
?后臺(tái)-文章列表
?后臺(tái)-添加文章
?后臺(tái)-測(cè)評(píng)題目管理
?后臺(tái)-測(cè)評(píng)維護(hù)
?后臺(tái)-查看留言
?后臺(tái)-用戶維護(hù)
?部分代碼:
/*** 留言列表** @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());//共享數(shù)據(jù)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());//獲取用戶的留言內(nèi)容String desc = json.getString("desc");//關(guān)聯(lián)idint indexId = 4;//生成一條默認(rèn)的用戶評(píng)論Reply reply = new Reply();reply.setReplyContent("親,管理員在快馬加鞭的回復(fù)您!");reply.setReplyTime(new Date());reply.setReplyUser("管理員");reply.setId(indexId);boolean insertReply = replyService.insert(reply);if (insertReply) {Leacot leacot = new Leacot();//用戶留言的內(nèi)容leacot.setContent(desc);//用戶留言時(shí)間leacot.setLeacotsTime(new Date());//默認(rèn)后臺(tái)沒有回復(fù)leacot.setStatus(0);//在Session中獲取leacot.setLeacotsUser(LoginSession.getCurrentUser().getUsername());//生成關(guān)聯(lián)leacot.setReplyId(reply);boolean insertLeacot = leacotService.insert(leacot);isSuccess = true;mapData.put("success", isSuccess);//維護(hù)一下關(guān)聯(lián)ID保證每一次進(jìn)來(lái)的大于上一次的IDindexId++;return mapData;}mapData.put("success", isSuccess);return mapData;}以上就是部分功能展示,從整體上來(lái)看,本系統(tǒng)功能是十分完整的,而且也與當(dāng)前的熱點(diǎn)話題關(guān)聯(lián),界面設(shè)計(jì)簡(jiǎn)潔大方,交互友好,數(shù)據(jù)庫(kù)設(shè)計(jì)也很合理,規(guī)模適中,比較適合畢業(yè)設(shè)計(jì)和課程設(shè)計(jì)的相關(guān)應(yīng)用。
好了,今天就到這兒吧,小伙伴們點(diǎn)贊、收藏、評(píng)論,一鍵三連走起呀,下期見~~
總結(jié)
以上是生活随笔為你收集整理的基于springboot的在线心理测评系统的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 你有没有遇到叫二狗子的那个哥们?
- 下一篇: Verilog频率计设计