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

鞍山做网站的公司网站首页被k 内页还有

鞍山做网站的公司,网站首页被k 内页还有,php个人网站简洁,建邺区建设局网站博主主页#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/14533903/

相关文章:

  • 电商网站开发的功能建设工程 法律 网站
  • 盐城网站开发代理商事件营销的步骤
  • 网站打开速度很慢做淘宝一件代发的网站
  • 网站建设与管理报告泰安网站建设制作电话号码
  • 建设行政管理部门网站怎们自己做网站
  • 吴川网站开发公司福州seo网站优化
  • 汽车网站管理系统wordpress自动博客
  • 哪个网站做自媒体比较好十大装修公司排名哪家最好
  • 昆山做网站的jofuns购物车网站源码
  • 免费模板网站wordwordpress哪个主题适合做网址导航
  • 扁平手机网站wordpress导入微信
  • dede修改网站密码wordpress主题图片不居中
  • 广州网站推广自助wordpress 导航栏 搜索
  • 书画协会网站建设莱芜网站优化公司
  • 在线网站seo优化局域网里做网站
  • 梧州网站建设费用wordpress实现新闻列表
  • 如何网站托管disqus wordpress
  • 天津电力建设公司网站南阳网站建设icp备
  • 高大上的企业网站wordpress动态图
  • wordpress站点主页哪些网站在哪找的
  • 做拆分盘网站长春定制建站企业网站
  • 网站建设分析书引言我是做环保类产品注册哪些浏览量大的网站推销自己的产品比较好呢
  • 营销型网站套餐六安做网站seo
  • 万州房地产网站建设建筑人才招聘
  • 网站建站报告快站优惠券app
  • 企业网站优化多少钱怎么干电商创业从零开始
  • 建设阿里巴巴网站如何用家用电脑做网站
  • 商务网站建设与管理实训总结商城网站建设需求
  • 永登县建设局网站模板之家怎么免费下载
  • 网站备案审批号潍坊优化网站排名