当前位置: 首页 > news >正文

手机网站建设的教程视频足球网站开发

手机网站建设的教程视频,足球网站开发,域名代备案,在线购物网站 模版博主主页#xff1a;Java旅途 简介#xff1a;分享计算机知识、学习路线、系统源码及教程 文末获取源码 117SpringBoot动漫论坛网站 一、项目介绍 动漫论坛网站是由SpringBootMybatis开发的#xff0c;旅游网站分为前台和后台#xff0c;前台为用户浏览#xff0c;后台进… 博主主页Java旅途 简介分享计算机知识、学习路线、系统源码及教程 文末获取源码 117SpringBoot动漫论坛网站 一、项目介绍 动漫论坛网站是由SpringBootMybatis开发的旅游网站分为前台和后台前台为用户浏览后台进行数据管理 后台功能如下 帖子管理分类管理标签管理 前台功能如下 帖子浏览帖子搜索分类查找标签查找帖子留言帖子回复 二、技术框架 后端SpringBootjpa前端jquery 三、安装教程 用idea打开项目 在idea中配置jdk环境 配置maven环境并下载依赖 新建数据库导入数据库文件 在application.properties文件中将数据库账号密码改成自己本地的 启动运行管理员账号密码 admin/123456 四、项目截图 五、相关代码 IndexController package com.cartoonbbs.cartoonbbs.web;import com.cartoonbbs.cartoonbbs.servive.ControllerService; import com.cartoonbbs.cartoonbbs.servive.TagService; import com.cartoonbbs.cartoonbbs.servive.TypeService; import com.cartoonbbs.cartoonbbs.vo.CartoonQuery; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.web.PageableDefault; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam;Controller public class IndexController {Autowiredprivate ControllerService controllerService;Autowiredprivate TypeService typeService;Autowiredprivate TagService tagService;GetMapping(/)public String index(PageableDefault(size 8,sort {updateTime},direction Sort.Direction.DESC) Pageable pageable,Model model) {model.addAttribute(page,controllerService.listCartoon(pageable));model.addAttribute(types,typeService.listTypeTop(6));model.addAttribute(tags,tagService.listTagTop(10));model.addAttribute(recommendCartoon,controllerService.listRecommendCartoonTop(8));return index;}PostMapping(/search)public String search(PageableDefault(size 8,sort {updateTime},direction Sort.Direction.DESC) Pageable pageable,RequestParam String query, Model model){model.addAttribute(page,controllerService.listCartoon(%query%,pageable));model.addAttribute(query,query);return search;}GetMapping(/details/{id})public String details(PathVariable Long id, Model model) {//model.addAttribute(cartoon,controllerService.getCartoon(id));model.addAttribute(cartoon,controllerService.getAndConvert(id));return details;}} LoginController package com.cartoonbbs.cartoonbbs.web.admin;import com.cartoonbbs.cartoonbbs.dao.UserRepository; import com.cartoonbbs.cartoonbbs.po.User; import com.cartoonbbs.cartoonbbs.servive.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.mvc.support.RedirectAttributes;import javax.servlet.http.HttpSession;Controller RequestMapping(/admin) public class LoginController {Autowiredprivate UserService userService;GetMappingpublic String loginPage(){return admin/login;}PostMapping(login)public String login(RequestParam String username,RequestParam String password,HttpSession session,RedirectAttributes attributes){User useruserService.checkUse(username,password);if(user!null){user.setPassword(null);session.setAttribute(user,user);return admin/index;}else {attributes.addFlashAttribute(message,用户名和密码错误);return redirect:/admin;}}GetMapping(/logout)public String logout(HttpSession session){session.removeAttribute(user);return redirect:/admin;} } 大家点赞、收藏、关注、评论啦 、点开下方卡片关注后回复 104
http://www.hkea.cn/news/14360531/

相关文章:

  • 广告网站模板广州越秀区发布紧急通告
  • 建设银行网站查询房贷信息查询德州北京网站建设
  • 手机建设网站wordpress 标签 文章
  • 做网站建设的有哪些网络科技官网网站建设
  • h5响应式网站上海荷城网站制作公司
  • 上海公司网站设计超酷 flash 网站
  • 百度收录收费 重大网站免费挣钱最快的游戏
  • 电脑上怎么建设网站提供网站备案信息
  • 网站开发税费ic外贸网站建设
  • 建设网站前端asp.net制作的网站开发
  • 手机网站宽度自适应网站seo哪里做的好
  • 网站建设的维护范围网页工具栏怎么还原
  • 张雪峰建议取消市场营销宁波网站快速优化
  • 个人免费网站平台网站空间怎么续费
  • 有什么网站专门做美食的吗深圳设计网页制作公司
  • 电子商务网站建设与管理考试海外seo托管
  • 做网站的公司都缴什么税金网站建设团队扬州
  • 公司网站的定义wordpress 建表
  • 陕西seo快速排名昆明seo网站建设
  • 科研实验室网站建设哈尔滨企业建站模板
  • 旅游网站建设市场分析代理网络游戏平台
  • 有一个做炫舞官网活动的网站网站美工做专题尺寸多少
  • 网页游戏网站源码招聘网站建设公司
  • 外国ps修图网站自助建设响应式网站
  • 天津网站排名优化费用广东省建设安全监督站的网站
  • 网站上线具体流程企业计划书范文完整版
  • 网站后台编辑框不显示wordpress 国内模板
  • 做网站包域名包服务器多少钱建设手机网站哪个平台比较好
  • 玉溪企业网站建设公司wordpress 个人博客模板
  • 如何做静态页网站免费做淘客cms网站