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

湖南建设监理工程网站大名网站建设公司

湖南建设监理工程网站,大名网站建设公司,商丘房产网,建筑行业网站模板作者#xff1a;计算机学长阿伟 开发技术#xff1a;SpringBoot、SSM、Vue、MySQL、ElementUI等#xff0c;“文末源码”。 开发运行环境 开发语言#xff1a;Java数据库#xff1a;MySQL技术#xff1a;SpringBoot、Vue、Mybaits Plus、ELementUI工具#xff1a;IDEA/… 作者计算机学长阿伟 开发技术SpringBoot、SSM、Vue、MySQL、ElementUI等“文末源码”。 开发运行环境 开发语言Java数据库MySQL技术SpringBoot、Vue、Mybaits Plus、ELementUI工具IDEA/Ecilpse、Navicat、Maven 源码下载地址 Java项目-基于springboot框架的智能热度分析和自媒体推送平台项目实战(附源码文档)资源-CSDN文库 一、项目简介 该项目是一个集智能热度分析和自媒体推送功能于一体的综合性平台。平台界面简洁明了以白色为背景顶部配以浅蓝色横条底部为深蓝色营造出清晰舒适的视觉效果。导航栏上设置了多个功能选项包括首页、文章信息、图片信息、视频信息、个人中心和后台管理每个选项都配备有蓝色的下拉箭头方便用户快速访问所需功能。该平台旨在通过智能分析技术为自媒体创作者提供热度分析、内容推送等一站式服务助力其精准定位受众提升内容影响力。 三、系统项目部分截图 3.1后台系统部分页面效果 3.2前台系统部分页面效果 四、部分核心代码 package com.controller;import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.Map;import javax.servlet.http.HttpServletRequest;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.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.entity.TokenEntity; import com.entity.UserEntity; import com.service.TokenService; import com.service.UserService; import com.utils.CommonUtil; import com.utils.MPUtil; import com.utils.PageUtils; import com.utils.R; import com.utils.ValidatorUtils;/*** 登录相关*/ RequestMapping(users) RestController public class UserController{Autowiredprivate UserService userService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthPostMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user userService.selectOne(new EntityWrapperUserEntity().eq(username, username));if(usernull || !user.getPassword().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(),username, users, user.getRole());return R.ok().put(token, token);}/*** 注册*/IgnoreAuthPostMapping(value /register)public R register(RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 退出*/GetMapping(value logout)public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok(退出成功);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){UserEntity user userService.selectOne(new EntityWrapperUserEntity().eq(username, username));if(usernull) {return R.error(账号不存在);}user.setPassword(123456);userService.update(user,null);return R.ok(密码已重置为123456);}/*** 列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,UserEntity user){EntityWrapperUserEntity ew new EntityWrapperUserEntity();PageUtils page userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/list)public R list( UserEntity user){EntityWrapperUserEntity ew new EntityWrapperUserEntity();ew.allEq(MPUtil.allEQMapPre( user, user)); return R.ok().put(data, userService.selectListView(ew));}/*** 信息*/RequestMapping(/info/{id})public R info(PathVariable(id) String id){UserEntity user userService.selectById(id);return R.ok().put(data, user);}/*** 获取用户的session用户信息*/RequestMapping(/session)public R getCurrUser(HttpServletRequest request){Long id (Long)request.getSession().getAttribute(userId);UserEntity user userService.selectById(id);return R.ok().put(data, user);}/*** 保存*/PostMapping(/save)public R save(RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);UserEntity u userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername()));if(u!null u.getId()!user.getId() u.getUsername().equals(user.getUsername())) {return R.error(用户名已存在。);}userService.updateById(user);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();} }获取源码或文档 如需对应的论文或文档以及其他定制需求也可以下方添加联系我。
http://www.dnsts.com.cn/news/89382.html

相关文章:

  • 咸阳市城市建设管理局网站个人简历模板范文手写
  • 做家教网站的资源是什么大型门户网站建设费用
  • 外贸soho怎么做网站网站上的二维码怎么做
  • 惠州网站制作工具行业类网站模板
  • 案例学习网站建设方案摸摸学校网站建设山东公司
  • 网站开发培训排名手机网站跟PC端网站有啥区别
  • 中国化工建设网站网站备案信息是什么意思
  • 网站建设兴田德润有专门做房孑特卖的网站吗
  • 做非经营网站需要营业执照微信crm下载
  • 互联网相关网站做电影网站有什么好处
  • aspx网站如何架设腾冲市住房和城乡建设局网站
  • 爱网站找不到了微机做网站的软件
  • 怎么自己做画册网站星沙网站建设公司
  • 投诉百度最有效的电话seo公司的选上海百首网络
  • 新站点seo联系方式淘宝是行业门户网站的盈利模式是什么
  • 经营网站的备案做阅读任务挣钱的网站
  • 有专业做网站优化的吗连云港网站建设价格
  • 创建网站好的平台做游戏用什么电脑系统下载网站
  • 台州网站策划浙江省人才网官方网站建设厅招聘
  • 根据网站软件做报告wordpress登录页面模板
  • 网站网站建设设计mysql 瓶颈 wordpress
  • 如皋市城乡建设局网站中文购物网站模板
  • 免费做cpa单页网站域名个人用户可以做企业网站吗
  • 桃城网站建设公司wordpress the
  • 提供专业网站小程序开发网络有限公司做女装网站的
  • 帝国cms做下载网站网站建设的软件有哪些
  • 做网站必须注册的商标wordpress主题代码显示行
  • 做网站的备案制作网页小程序
  • 国外试用网站空间帮忙网页设计师
  • 高端品牌网站建设定位余姚关键词优化公司