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

长春建设平台网站的公司济宁百度推广公司有几家

长春建设平台网站的公司,济宁百度推广公司有几家,2023新闻热点事件,主机屋做淘宝客网站基于javaweb的清新论坛系统(javassmmysqltomcat) 运行环境 Java≥8、MySQL≥5.7、Tomcat≥8 开发工具 eclipse/idea/myeclipse/sts等均可配置运行 适用 课程设计,大作业,毕业设计,项目练习,学习演示等 功能说明 基于javawe…

基于javaweb的清新论坛系统(java+ssm+mysql+tomcat)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

20220519001226

20220519001227

20220519001228

20220519001230

20220519001231

20220519001232

基于javaweb的网上论坛在线论坛系统bbs(java+SSM+mysql+maven+tomcat)

一、项目简述

功能:本系统分用户前台和管理员后台。 用户前台主要功能有: 用户注册 用户登录 浏览帖子 回复帖子 修改个人资料 管理员后台的功能有: 管理论坛版块 用户管理 回复管理;

二、项目运行

环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)

项目技术: JSP +Spring + SpringMVC + MyBatis + html+ css + JavaScript + JQuery + Ajax + layui+ maven等等。

处理管理员界面请求:

/**

  • 处理管理员界面请求

*/

@Controller

@RequestMapping(“/admin”)

public class AdminController {

@Resource

private AdminUserService adminUserService;

@Resource

private BlogService blogService;

@Resource

private CategoryService categoryService;

@Resource

private TagService tagService;

@Resource

private CommentService commentService;

/**

  • 处理登录请求

  • @return java.lang.String

*/

@GetMapping({“/login”})

public String login() {

return “admin/login”;

/**

  • 主页

  • @param request http请求

  • @return java.lang.String

*/

@GetMapping({“”, “/”, “/index”, “/index.html”})

public String index(HttpServletRequest request) {

request.setAttribute(“path”, “index”);

request.setAttribute(“categoryCount”, categoryService.getTotalCategories());

request.setAttribute(“blogCount”, blogService.getTotalBlogs());

request.setAttribute(“tagCount”, tagService.getTotalTags());

request.setAttribute(“commentCount”, commentService.getTotalComments());

return “admin/index”;

/**

  • 登录界面

  • @param userName 用户名

  • @param password 密码

  • @param verifyCode 验证码

  • @param session session

  • @return java.lang.String

*/

@PostMapping(value = “/login”)

public String login(@RequestParam(“userName”) String userName,

@RequestParam(“password”) String password,

@RequestParam(“verifyCode”) String verifyCode,

HttpSession session) {

if (StringUtils.isEmpty(verifyCode)) {

session.setAttribute(“errorMsg”, “验证码不能为空”);

return “admin/login”;

if (StringUtils.isEmpty(userName) || StringUtils.isEmpty(password)) {

session.setAttribute(“errorMsg”, “用户名或密码不能为空”);

return “admin/login”;

String kaptchaCode = session.getAttribute(“verifyCode”) + “”;

if (StringUtils.isEmpty(kaptchaCode) || !verifyCode.equals(kaptchaCode)) {

session.setAttribute(“errorMsg”, “验证码错误”);

return “admin/login”;

AdminUser adminUser = adminUserService.login(userName, password);

if (adminUser != null) {

session.setAttribute(“loginUser”, adminUser.getNickName());

session.setAttribute(“loginUserId”, adminUser.getAdminUserId());

//session过期时间设置为7200秒 即两小时

//session.setMaxInactiveInterval(60 * 60 * 2);

return “redirect:/admin/index”;

} else {

session.setAttribute(“errorMsg”, “登陆失败”);

return “admin/login”;

/**

  • 修改个人信息

  • @param request http请求

  • @return java.lang.String

*/

@GetMapping(“/profile”)

public String profile(HttpServletRequest request) {

Integer loginUserId = (int) request.getSession().getAttribute(“loginUserId”);

AdminUser adminUser = adminUserService.getUserDetailById(loginUserId);

if (adminUser == null) {

return “admin/login”;

request.setAttribute(“path”, “profile”);

request.setAttribute(“loginUserName”, adminUser.getLoginUserName());

request.setAttribute(“nickName”, adminUser.getNickName());

return “admin/profile”;

/**

  • 修改密码

  • @param request http请求

  • @param originalPassword 原始密码

  • @param newPassword 新密码

  • @return java.lang.String

*/

@PostMapping(“/profile/password”)

@ResponseBody

public String passwordUpdate(HttpServletRequest request, @RequestParam(“originalPassword”) String originalPassword,

@RequestParam(“newPassword”) String newPassword) {

if (StringUtils.isEmpty(originalPassword) || StringUtils.isEmpty(newPassword)) {

return “参数不能为空”;

Integer loginUserId = (int) request.getSession().getAttribute(“loginUserId”);

if (adminUserService.updatePassword(loginUserId, originalPassword, newPassword)) {

//修改成功后清空session中的数据,前端控制跳转至登录页

request.getSession().removeAttribute(“loginUserId”);

request.getSession().removeAttribute(“loginUser”);

request.getSession().removeAttribute(“errorMsg”);

return “success”;

} else {

return “修改失败”;

/**

  • 修改登录名,昵称

  • @param request http请求

  • @param loginUserName 登录名

  • @param nickName 昵称

  • @return java.lang.String

*/

@PostMapping(“/profile/name”)

@ResponseBody

public String nameUpdate(HttpServletRequest request, @RequestParam(“loginUserName”) String loginUserName,

@RequestParam(“nickName”) String nickName) {

if (StringUtils.isEmpty(loginUserName) || StringUtils.isEmpty(nickName)) {

return “参数不能为空”;

Integer loginUserId = (int) request.getSession().getAttribute(“loginUserId”);

if (adminUserService.updateName(loginUserId, loginUserName, nickName)) {

return “success”;

} else {

return “修改失败”;

/**

  • 管理员退出

  • @param request http请求

  • @return java.lang.String

*/

@GetMapping(“/logout”)

public String logout(HttpServletRequest request) {

request.getSession().removeAttribute(“loginUserId”);

request.getSession().removeAttribute(“loginUser”);

request.getSession().removeAttribute(“errorMsg”);

return “admin/login”;

管理员控制层:

/**

  • 管理员控制层

*/

@Controller

@RequestMapping(“/admin”)

public class CategoryController {

@Resource

private CategoryService categoryService;

/**

  • @param request

  • @return java.lang.String

*/

@GetMapping(“/categories”)

public String categoryPage(HttpServletRequest request) {

request.setAttribute(“path”, “categories”);

return “admin/category”;

/**

  • @param params

  • @return com.hbu.myblog.util.Result

*/

@RequestMapping(value = “/categories/list”, method = RequestMethod.GET)

@ResponseBody

public Result list(@RequestParam Map<String, Object> params) {

if (StringUtils.isEmpty(params.get(“page”)) || StringUtils.isEmpty(params.get(“limit”))) {

return ResultGenerator.genFailResult(“参数异常!”);

PageQueryUtil pageUtil = new PageQueryUtil(params);

return ResultGenerator.genSuccessResult(categoryService.getBlogCategoryPage(pageUtil));

/**

  • @param categoryName

  • @param categoryIcon

  • @return com.hbu.myblog.util.Result

*/

@RequestMapping(value = “/categories/save”, method = RequestMethod.POST)

@ResponseBody

public Result save(@RequestParam(“categoryName”) String categoryName,

@RequestParam(“categoryIcon”) String categoryIcon) {

if (StringUtils.isEmpty(categoryName)) {

return ResultGenerator.genFailResult(“请输入分类名称!”);

if (StringUtils.isEmpty(categoryIcon)) {

return ResultGenerator.genFailResult(“请选择分类图标!”);

if (categoryService.saveCategory(categoryName, categoryIcon)) {

return ResultGenerator.genSuccessResult();

} else {

return ResultGenerator.genFailResult(“分类名称重复”);

/**

  • @param categoryId

  • @param categoryName

  • @param categoryIcon

  • @return com.hbu.myblog.util.Result

*/

@RequestMapping(value = “/categories/update”, method = RequestMethod.POST)

@ResponseBody

public Result update(@RequestParam(“categoryId”) Integer categoryId,

@RequestParam(“categoryName”) String categoryName,

@RequestParam(“categoryIcon”) String categoryIcon) {

if (StringUtils.isEmpty(categoryName)) {

return ResultGenerator.genFailResult(“请输入分类名称!”);

if (StringUtils.isEmpty(categoryIcon)) {

return ResultGenerator.genFailResult(“请选择分类图标!”);

if (categoryService.updateCategory(categoryId, categoryName, categoryIcon)) {

return ResultGenerator.genSuccessResult();

} else {

return ResultGenerator.genFailResult(“分类名称重复”);

/**

  • @param ids

  • @return com.hbu.myblog.util.Result

*/

@RequestMapping(value = “/categories/delete”, method = RequestMethod.POST)

@ResponseBody

public Result delete(@RequestBody Integer[] ids) {

if (ids.length < 1) {

return ResultGenerator.genFailResult(“参数异常!”);

if (categoryService.deleteBatch(ids)) {

return ResultGenerator.genSuccessResult();

} else {

return ResultGenerator.genFailResult(“删除失败”);

博客内容控制层:

/**

  • @author 博客

*/

@Controller

@RequestMapping(“/admin”)

public class BlogController {

@Resource

private BlogService blogService;

@Resource

private CategoryService categoryService;

/**

  • 博客列表

  • @param params 参数

  • @return com.hbu.myblog.util.Result

*/

@GetMapping(“/blogs/list”)

@ResponseBody

public Result list(@RequestParam Map<String, Object> params) {

if (StringUtils.isEmpty(params.get(“page”)) || StringUtils.isEmpty(params.get(“limit”))) {

return ResultGenerator.genFailResult(“参数异常!”);

PageQueryUtil pageUtil = new PageQueryUtil(params);

return ResultGenerator.genSuccessResult(blogService.getBlogsPage(pageUtil));

/**

  • @param request http请求

  • @return java.lang.String

*/

@GetMapping(“/blogs”)

public String list(HttpServletRequest request) {

request.setAttribute(“path”, “blogs”);

return “admin/blog”;

/**

  • @param request http请求

  • @return java.lang.String

*/

@GetMapping(“/blogs/edit”)

public String edit(HttpServletRequest request) {

request.setAttribute(“path”, “edit”);

request.setAttribute(“categories”, categoryService.getAllCategories());

return “admin/edit”;

/**

  • @param request http请求

  • @param blogId 博客id

  • @return java.lang.String

*/

@GetMapping(“/blogs/edit/{blogId}”)

public String edit(HttpServletRequest request, @PathVariable(“blogId”) Long blogId) {

request.setAttribute(“path”, “edit”);

Blog blog = blogService.getBlogById(blogId);

if (blog == null) {

return “error/error_400”;

request.setAttribute(“blog”, blog);

request.setAttribute(“categories”, categoryService.getAllCategories());

return “admin/edit”;

/**

  • 添加文章

  • @param blogTitle 文章标题

  • @param blogSummary 摘要

  • @param blogCategoryId 类别

  • @param blogTags 标签

  • @param blogContent 内容

  • @param blogStatus 草稿,发布

  • @param enableComment 可否评论

  • @return com.hbu.myblog.util.Result

*/

@PostMapping(“/blogs/save”)

@ResponseBody

public Result save(@RequestParam(“blogTitle”) String blogTitle,

@RequestParam(name = “blogSummary”, required = false) String blogSummary,

@RequestParam(“blogCategoryId”) Integer blogCategoryId,

@RequestParam(“blogTags”) String blogTags,

@RequestParam(“blogContent”) String blogContent,

@RequestParam(“blogStatus”) Byte blogStatus,

@RequestParam(“enableComment”) Byte enableComment) {

if (StringUtils.isEmpty(blogTitle)) {

return ResultGenerator.genFailResult(“请输入文章标题”);

if (blogTitle.trim().length() > 150) {

return ResultGenerator.genFailResult(“标题过长”);

if (StringUtils.isEmpty(blogTags)) {

return ResultGenerator.genFailResult(“请输入文章标签”);

if (blogTags.trim().length() > 150) {

return ResultGenerator.genFailResult(“标签过长”);

if (blogSummary.trim().length() > 375) {

return ResultGenerator.genFailResult(“摘要过长”);

if (StringUtils.isEmpty(blogContent)) {

return ResultGenerator.genFailResult(“请输入文章内容”);

if (blogTags.trim().length() > 100000) {

return ResultGenerator.genFailResult(“文章内容过长”);

Blog blog = new Blog();

blog.setBlogTitle(blogTitle);

blog.setBlogSummary(blogSummary);

blog.setBlogCategoryId(blogCategoryId);

blog.setBlogTags(blogTags);

blog.setBlogContent(blogContent);

blog.setBlogStatus(blogStatus);

blog.setEnableComment(enableComment);

String saveBlogResult = blogService.saveBlog(blog);

if (“success”.equals(saveBlogResult)) {

return ResultGenerator.genSuccessResult(“添加成功”);

} else {

return ResultGenerator.genFailResult(saveBlogResult);

/**

  • 修改文章

  • @param blogId 文章ID

  • @param blogTitle 文章标题

  • @param blogSummary 摘要

  • @param blogCategoryId 类别

  • @param blogTags 标签

  • @param blogContent 内容

  • @param blogStatus 草稿,发布

  • @param enableComment 可否评论

  • @return com.hbu.myblog.util.Result

*/

@PostMapping(“/blogs/update”)

@ResponseBody

public Result update(@RequestParam(“blogId”) Long blogId,

@RequestParam(“blogTitle”) String blogTitle,

@RequestParam(name = “blogSummary”, required = false) String blogSummary,

@RequestParam(“blogCategoryId”) Integer blogCategoryId,

@RequestParam(“blogTags”) String blogTags,

@RequestParam(“blogContent”) String blogContent,

@RequestParam(“blogStatus”) Byte blogStatus,

@RequestParam(“enableComment”) Byte enableComment) {

if (StringUtils.isEmpty(blogTitle)) {

return ResultGenerator.genFailResult(“请输入文章标题”);

if (blogTitle.trim().length() > 150) {

return ResultGenerator.genFailResult(“标题过长”);

if (StringUtils.isEmpty(blogTags)) {

return ResultGenerator.genFailResult(“请输入文章标签”);

if (blogTags.trim().length() > 150) {

return ResultGenerator.genFailResult(“标签过长”);

if (blogSummary.trim().length() > 375) {

return ResultGenerator.genFailResult(“摘要过长”);

if (StringUtils.isEmpty(blogContent)) {

return ResultGenerator.genFailResult(“请输入文章内容”);

if (blogTags.trim().length() > 100000) {

return ResultGenerator.genFailResult(“文章内容过长”);

Blog blog = new Blog();

blog.setBlogId(blogId);

blog.setBlogTitle(blogTitle);

blog.setBlogSummary(blogSummary);

blog.setBlogCategoryId(blogCategoryId);

blog.setBlogTags(blogTags);

blog.setBlogContent(blogContent);

blog.setBlogStatus(blogStatus);

blog.setEnableComment(enableComment);

String updateBlogResult = blogService.updateBlog(blog);

if (“success”.equals(updateBlogResult)) {

return ResultGenerator.genSuccessResult(“修改成功”);

} else {

return ResultGenerator.genFailResult(updateBlogResult);

/**

  • 根据id的之删除文章

  • @param ids 要删除文章id列表

  • @return com.hbu.myblog.util.Result

*/

@PostMapping(“/blogs/delete”)

@ResponseBody

public Result delete(@RequestBody Integer[] ids) {

if (ids.length < 1) {

return ResultGenerator.genFailResult(“参数异常!”);

if (blogService.deleteBatch(ids)) {

return ResultGenerator.genSuccessResult();

} else {

return ResultGenerator.genFailResult(“删除失败”);



文章转载自:
http://dinncoentrancing.zfyr.cn
http://dinncotracking.zfyr.cn
http://dinncovoltameter.zfyr.cn
http://dinncocaballero.zfyr.cn
http://dinncoatretic.zfyr.cn
http://dinncoadpcm.zfyr.cn
http://dinncoandrodioecious.zfyr.cn
http://dinncotightfitting.zfyr.cn
http://dinncocaponata.zfyr.cn
http://dinncorejuvenize.zfyr.cn
http://dinncounsound.zfyr.cn
http://dinncoprut.zfyr.cn
http://dinncokushitic.zfyr.cn
http://dinncofornicator.zfyr.cn
http://dinncomethaemoglobin.zfyr.cn
http://dinncoaffect.zfyr.cn
http://dinncothalamotomy.zfyr.cn
http://dinncochiccory.zfyr.cn
http://dinncodevisee.zfyr.cn
http://dinncosalesgirl.zfyr.cn
http://dinncograin.zfyr.cn
http://dinncovolkslied.zfyr.cn
http://dinncomidpoint.zfyr.cn
http://dinncoalanyl.zfyr.cn
http://dinncoantepaschal.zfyr.cn
http://dinncohaemothorax.zfyr.cn
http://dinncoelaborate.zfyr.cn
http://dinncosompa.zfyr.cn
http://dinncohatty.zfyr.cn
http://dinncounrent.zfyr.cn
http://dinncowassermann.zfyr.cn
http://dinncoequijoin.zfyr.cn
http://dinncohelleborine.zfyr.cn
http://dinncotamarugo.zfyr.cn
http://dinncoduvay.zfyr.cn
http://dinncoameba.zfyr.cn
http://dinncoroland.zfyr.cn
http://dinncohypophysectomy.zfyr.cn
http://dinncocheerless.zfyr.cn
http://dinncoarthrospore.zfyr.cn
http://dinncoputresce.zfyr.cn
http://dinncotomboy.zfyr.cn
http://dinncoacetum.zfyr.cn
http://dinncophotosensitise.zfyr.cn
http://dinncoinimically.zfyr.cn
http://dinncobicipital.zfyr.cn
http://dinncoworriless.zfyr.cn
http://dinncounnumbered.zfyr.cn
http://dinncothermostatic.zfyr.cn
http://dinncononcommunicable.zfyr.cn
http://dinncosportscaster.zfyr.cn
http://dinncopsychoquack.zfyr.cn
http://dinncoepiboly.zfyr.cn
http://dinncoprocryptic.zfyr.cn
http://dinncoodorimeter.zfyr.cn
http://dinncoalarmist.zfyr.cn
http://dinncoderidingly.zfyr.cn
http://dinncolondonize.zfyr.cn
http://dinncoemendable.zfyr.cn
http://dinncophotodrama.zfyr.cn
http://dinncohidropoiesis.zfyr.cn
http://dinncoexperimentative.zfyr.cn
http://dinncofairy.zfyr.cn
http://dinncocycloparaffin.zfyr.cn
http://dinncotersely.zfyr.cn
http://dinncosystyle.zfyr.cn
http://dinncoboo.zfyr.cn
http://dinncounsuspectingly.zfyr.cn
http://dinncopetrous.zfyr.cn
http://dinncouniflow.zfyr.cn
http://dinncosupercarrier.zfyr.cn
http://dinncodentiform.zfyr.cn
http://dinncovegetable.zfyr.cn
http://dinncopyroxylin.zfyr.cn
http://dinncoaffined.zfyr.cn
http://dinncotriglyph.zfyr.cn
http://dinncopackplane.zfyr.cn
http://dinncobarony.zfyr.cn
http://dinncovachel.zfyr.cn
http://dinncofang.zfyr.cn
http://dinncowasherette.zfyr.cn
http://dinncomoline.zfyr.cn
http://dinncocorrugated.zfyr.cn
http://dinncomyrmecophile.zfyr.cn
http://dinncocyrtostyle.zfyr.cn
http://dinncoupkeep.zfyr.cn
http://dinncocampong.zfyr.cn
http://dinncowindbound.zfyr.cn
http://dinncoserpasil.zfyr.cn
http://dinncofletschhorn.zfyr.cn
http://dinncoglans.zfyr.cn
http://dinncocrocein.zfyr.cn
http://dinncofellowlike.zfyr.cn
http://dinncodantist.zfyr.cn
http://dinncokopfring.zfyr.cn
http://dinncolanarkshire.zfyr.cn
http://dinncoupwhirl.zfyr.cn
http://dinncostrictness.zfyr.cn
http://dinncopathogenetic.zfyr.cn
http://dinncocoolish.zfyr.cn
http://www.dinnco.com/news/141179.html

相关文章:

  • 网站更名策划方案百度广告搜索推广
  • 外贸网站建站多少钱怎么弄一个网站
  • ps海报制作教程步骤的网站百度关键词指数查询工具
  • 近三天时政热点seo营销推广公司
  • 东莞品牌网站定制百度友情链接
  • 临沂网站制作案例2022网站seo
  • app和网站开发哪个难长尾词和关键词的区别
  • 电脑做试卷的网站品牌营销和市场营销的区别
  • 做网站的软件高中 通用技术网站seo 优化
  • 去盘古网络做网站好么淘宝seo搜索引擎优化
  • 攸县做网站的百度seo推广优化
  • 山东兴润建设有限公司网站软文模板app
  • 怎么做公司宣传网站怎么网上推广自己的产品
  • 武汉高端网站制作百度手机快速排名点击软件
  • 北京装饰公司电话科学新概念seo外链平台
  • 网站用哪个数据库seo网站优化价格
  • 宁波做网站建设推广国外常用的seo站长工具
  • 35互联做的网站新手如何自己做网站
  • 网站服务器托管协议要做网络推广
  • 静态网站制作wordpress模版廊坊百度关键词优化怎么做
  • 做网站前怎么建立数据结构运营推广公司
  • 成都专业做网站的公司有哪些谷歌关键词工具
  • 网站营销与推广策略销售推广
  • wordpress 博客搬家西安seo外包公司
  • 黑白高端网站建设深圳网络运营推广公司
  • 中国电力建设企业协会网站百度贴吧官网入口
  • 城乡建设网站证件查询北京网站优化对策
  • 西地那非片说明书百中搜优化
  • 哔哩哔哩网站怎么做视频苏州百度推广服务中心
  • 合肥微网站制作网络推广员要怎么做