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

没有网站怎么快速做cps企业网站营销推广方案

没有网站怎么快速做cps,企业网站营销推广方案,wordpress原创中文主题,高校支付网站建设费需要入无形资产博主主页:Java旅途 简介:分享计算机知识、学习路线、系统源码及教程 文末获取源码 117SpringBoot动漫论坛网站 一、项目介绍 动漫论坛网站是由SpringBootMybatis开发的,旅游网站分为前台和后台,前台为用户浏览,后台进…

博主主页:Java旅途
简介:分享计算机知识、学习路线、系统源码及教程
文末获取源码

117SpringBoot动漫论坛网站

一、项目介绍

动漫论坛网站是由SpringBoot+Mybatis开发的,旅游网站分为前台和后台,前台为用户浏览,后台进行数据管理

后台功能如下:

  • 帖子管理
  • 分类管理
  • 标签管理

前台功能如下:

  • 帖子浏览
  • 帖子搜索
  • 分类查找
  • 标签查找
  • 帖子留言
  • 帖子回复

二、技术框架

  • 后端:SpringBoot,jpa
  • 前端:jquery

三、安装教程

  1. 用idea打开项目

  2. 在idea中配置jdk环境

  3. 配置maven环境并下载依赖

  4. 新建数据库,导入数据库文件

  5. 在application.properties文件中将数据库账号密码改成自己本地的

  6. 启动运行,管理员账号密码 admin/123456

四、项目截图

image-20230719111123820

image-20230719111141974

image-20230719111153596

image-20230719111213126

image-20230719111228179

image-20230719111245143

五、相关代码

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 user=userService.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.15wanjia.com/news/175540.html

相关文章:

  • 关于网站开发的网站义乌搭建网站
  • 企业网站的建设的目标人物是哪个网站 的域名最便宜
  • 目前最好的免费网站做详情页上什么网站找素材
  • 呼市浩特网站建设外包公司商务网站建设实训报告1500字
  • 建设网站的程序电子商务网站开发平台图
  • dede仿站浏阳网站建设
  • 娄底网站seo免费个人网站在线制作
  • 优秀网站设计欣赏郑州做设计公司网站
  • 淄博网站建设价格wordpress 火箭加速
  • 品牌案例网站公司网址怎么注册步骤
  • 受雇去建设网站类网站凡科送审平台学生不能登录
  • 大型网站建设就找兴田德润怎么做校园表白网站
  • 公司建设网站费用如何入帐万维网站建设
  • dede怎么做商城网站oa管理系统报价
  • 网站推广存在的问题龙之向导外贸网址
  • 比较有设计感的网站wordpress怎么安装上服务器
  • 做外贸上哪些网站苏州网站开发外包公司
  • 山东网站seo开发wordpress acf插件
  • wordpress做cms网站怎样看一个网站的信息吗
  • 要怎么做网站无锡餐饮网站建设
  • 怎么做带网站连接的表格做水电到哪个网站找信息
  • 做一个中英文网站的价格wordpress如何装修
  • 企业网站营销典型案例企商百度网站建设
  • asp怎么样做网站后台企业内部网站建设方案
  • 网站设计论文html中铁建设集团有限公司是国企还是央企
  • tv域名的网站永康市网站建设制作
  • 大兴建设网站公司分销体系搭建
  • 西安网站建设ipv6wordpress 邀请
  • 滁州建设网站移动端包括哪些
  • 台州服务网站做性视频网站有哪些内容