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

做内部优惠券网站赚钱吗aspnet网站模板

做内部优惠券网站赚钱吗,aspnet网站模板,社交网站开发技术岗,如何做电商网站首页博主主页#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/14384655/

相关文章:

  • 帮做论文网站吗商城开发哪家好
  • 网站制作厦门电商分销系统
  • 网站做聚合页面方案如何写广州市官网网站建设哪家好
  • 婚纱网站排行网站建设团队扬州
  • 安徽省建设工程造价管理协会网站个人网站源码进一品资源
  • 大连市网站制作电话楼市最新消息2023
  • 安平县做百度网站电话站长工具友链查询
  • 福州专业网站建设推广费用好用建站模板
  • 杭州旅游团购网站建设dw做网站的流程
  • seo站长常用工具公司网站SEO优化哪个做得好
  • 私人网站开发公司制作app开发制作
  • wordpress如何开发手机扬中网站优化哪家好
  • 山海关城乡建设局网站建设网站目标
  • 建设项目环境影响网站搜索引擎优化举例说明
  • 湛江手机网站建设公司游戏 网站 模板
  • 百度搜索网站图片国外小型网站
  • 响应式网站是指自适应吗互联网行业怎么赚钱
  • 项目推广方案怎么写重庆seo整站优化
  • 外贸网站建设青岛百安居装修口碑怎么样
  • 联想官方服务网站推广网站的网址和网鱼相匹配
  • 通付盾 建设公司网站国外网站建设嫣语赋
  • 网站是不是每年都要续费企业网站排名优化方案
  • 经营网站建设做论坛网站4g空间够不够用
  • 物流网站开发实训视频做网站
  • 做片头网站响应式网站建设外文文献
  • 最简单的网站怎么做中国移动手机支付网站
  • 国外优秀建筑设计网站服装网站设计欣赏
  • 靖安县城乡规划建设局网站html网页模板网站模板下载
  • 西充县建设路小学网站哪个网站卖自己做的手工艺品
  • 公司网站建设多少费用兴田德润在哪里网站建设又叫什么