日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > windows >内容正文

windows

易课寄在线购课系统开发笔记(十五)--完成购课系统门户的工程搭建

發(fā)布時(shí)間:2024/1/18 windows 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 易课寄在线购课系统开发笔记(十五)--完成购课系统门户的工程搭建 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

購課系統(tǒng)門戶首頁

工程搭建

可以參考

易課寄在線購課系統(tǒng)開發(fā)筆記(七)–后臺管理系統(tǒng)工程搭建分析

ecourses-bms-web 工程的搭建過程。

功能分析

請求的 url:/index

web.xml 中的歡迎頁配置

<welcome-file-list><welcome-file>index.html</welcome-file> </welcome-file-list>

http://localhost:8082/index.html

參數(shù):沒有

返回值:String 邏輯視圖

package cn.ecourses.portal.controller; //首頁展示Controller @Controller public class IndexController {@Value("${CONTENT_BIGAD_ID}")private Long CONTENT_BIGAD_ID;@Value("${CONTENT_MINIAD_ID}")private Long CONTENT_MINIAD_ID;@Value("${CONTENT_BESTUP_ID}")private Long CONTENT_BESTUP_ID;@Value("${CONTENT_BESTDOWN_ID}")private Long CONTENT_BESTDOWN_ID;@Value("${CONTENT_CHEAPLEFT_ID}")private Long CONTENT_CHEAPLEFT_ID;@Value("${CONTENT_CHEAPLIST_ID}")private Long CONTENT_CHEAPLIST_ID;@Value("${CONTENT_MINITITLELIST_ID}")private Long CONTENT_MINITITLELIST_ID;@Value("${CONTENT_NEWS_ID}")private Long CONTENT_NEWS_ID;@Autowiredprivate ContentService contentService;@RequestMapping("/index")public String showIndex(Model model) {//查詢內(nèi)容列表List<EcoursesContent> bigAdList = contentService.getContentListByCid(CONTENT_BIGAD_ID);List<EcoursesContent> smallAdList = contentService.getContentListByCid(CONTENT_MINIAD_ID);List<EcoursesContent> bestUpList = contentService.getContentListByCid(CONTENT_BESTUP_ID);List<EcoursesContent> bestDownList = contentService.getContentListByCid(CONTENT_BESTDOWN_ID);List<EcoursesContent> cheapLeftList = contentService.getContentListByCid(CONTENT_CHEAPLEFT_ID);List<EcoursesContent> cheapList = contentService.getContentListByCid(CONTENT_CHEAPLIST_ID);List<EcoursesContent> miniTitleList = contentService.getContentListByCid(CONTENT_MINITITLELIST_ID);List<EcoursesContent> newsList = contentService.getContentListByCid(CONTENT_NEWS_ID);// 把結(jié)果傳遞給頁面model.addAttribute("bigAdList", bigAdList);model.addAttribute("smallAdList", smallAdList);model.addAttribute("bestUpList", bestUpList);model.addAttribute("bestDownList", bestDownList);model.addAttribute("cheapLeftList", cheapLeftList);model.addAttribute("cheapList", cheapList);model.addAttribute("miniTitleList", miniTitleList);model.addAttribute("newsList", newsList);return "index";} }

總結(jié)

以上是生活随笔為你收集整理的易课寄在线购课系统开发笔记(十五)--完成购课系统门户的工程搭建的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。