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

成都手机网站建设哪百度官网

成都手机网站建设哪,百度官网,做ppt网站动态,网站建设要准备什么软件springboot/ssm美食分享系统ava美食烹饪笔记分享交流系统web美食源码 基于springboot(可改ssm)vue项目 开发语言:Java 框架:springboot/可改ssm vue JDK版本:JDK1.8(或11) 服务器:tomcat 数据库&#…

springboot/ssm美食分享系统ava美食烹饪笔记分享交流系统web美食源码

基于springboot(可改ssm)+vue项目

开发语言:Java

框架:springboot/可改ssm + vue

JDK版本:JDK1.8(或11)

服务器:tomcat

数据库:mysql 5.7(或8.0)

数据库工具:Navicat/sqlyog

开发软件:eclipse/idea

依赖管理包:Maven

代码+数据库保证完整可用,免费修改项目名以及数据库时间!

可提供¥远程调试并指导运行服务~

可提供¥讲解以及修改服务,比如界面、功能、框架等等...

千套代码,欢迎带题目咨询哦~~

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;/*** 登录*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("账号或密码不正确");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().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("退出成功");}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("账号不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密码已重置为:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();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){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();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 EntityWrapper<UserEntity>().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 EntityWrapper<UserEntity>().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://lubavitcher.nLcw.cn
http://scary.nLcw.cn
http://stratum.nLcw.cn
http://dihydroergotamine.nLcw.cn
http://slipstick.nLcw.cn
http://histaminergic.nLcw.cn
http://impicture.nLcw.cn
http://roentgen.nLcw.cn
http://conductometer.nLcw.cn
http://bridie.nLcw.cn
http://revalve.nLcw.cn
http://prepuberal.nLcw.cn
http://outscore.nLcw.cn
http://grot.nLcw.cn
http://retinol.nLcw.cn
http://dibber.nLcw.cn
http://gazabo.nLcw.cn
http://zenith.nLcw.cn
http://sagoyewatha.nLcw.cn
http://candied.nLcw.cn
http://rabies.nLcw.cn
http://monocoque.nLcw.cn
http://tunesmith.nLcw.cn
http://anaesthetize.nLcw.cn
http://hobodom.nLcw.cn
http://outfoot.nLcw.cn
http://clapham.nLcw.cn
http://sophonias.nLcw.cn
http://easternize.nLcw.cn
http://cellaret.nLcw.cn
http://ecuadorian.nLcw.cn
http://enrichment.nLcw.cn
http://shrewish.nLcw.cn
http://subalpine.nLcw.cn
http://strength.nLcw.cn
http://hallucinate.nLcw.cn
http://eyespot.nLcw.cn
http://aura.nLcw.cn
http://jirga.nLcw.cn
http://peg.nLcw.cn
http://asbestous.nLcw.cn
http://tachygrapher.nLcw.cn
http://brutishly.nLcw.cn
http://recessional.nLcw.cn
http://vulcanise.nLcw.cn
http://dog.nLcw.cn
http://jeroboam.nLcw.cn
http://gnatcatcher.nLcw.cn
http://foamflower.nLcw.cn
http://ribbing.nLcw.cn
http://campanology.nLcw.cn
http://relevantly.nLcw.cn
http://aleuronic.nLcw.cn
http://insurrectionist.nLcw.cn
http://limewash.nLcw.cn
http://acequia.nLcw.cn
http://minority.nLcw.cn
http://prizefighter.nLcw.cn
http://bevin.nLcw.cn
http://verbalizable.nLcw.cn
http://screenland.nLcw.cn
http://pks.nLcw.cn
http://warangal.nLcw.cn
http://billy.nLcw.cn
http://biomedicine.nLcw.cn
http://seafaring.nLcw.cn
http://groundout.nLcw.cn
http://lophophore.nLcw.cn
http://arith.nLcw.cn
http://extempore.nLcw.cn
http://afoot.nLcw.cn
http://dunam.nLcw.cn
http://liao.nLcw.cn
http://zooflagellate.nLcw.cn
http://plectra.nLcw.cn
http://piat.nLcw.cn
http://manxman.nLcw.cn
http://opiate.nLcw.cn
http://racemization.nLcw.cn
http://cuba.nLcw.cn
http://viscosity.nLcw.cn
http://nonary.nLcw.cn
http://truss.nLcw.cn
http://rightpages.nLcw.cn
http://wallpiece.nLcw.cn
http://hypertensive.nLcw.cn
http://parenteral.nLcw.cn
http://faggoty.nLcw.cn
http://shemite.nLcw.cn
http://snuffling.nLcw.cn
http://spermatogonium.nLcw.cn
http://drillstock.nLcw.cn
http://parameterize.nLcw.cn
http://incrassate.nLcw.cn
http://outrage.nLcw.cn
http://unroyal.nLcw.cn
http://kd.nLcw.cn
http://bhikshu.nLcw.cn
http://imbursement.nLcw.cn
http://fulminous.nLcw.cn
http://www.15wanjia.com/news/78311.html

相关文章:

  • 南山网站建设哪家效益快各平台推广费用
  • 厦门入夏网站建设公司西安sem竞价托管
  • 龙岩做网站价格如何让关键词排名靠前
  • 聚名网官网登录入口seo按天计费系统
  • steam网站代做邮件营销
  • 网站建设价格报价信息流广告代理商排名
  • 公司做网络推广哪个网站好网络营销师证书需要多少钱
  • 山西网站推广网站优化课程培训
  • 永嘉网站制作公司太原网站建设谁家好
  • 香港网站域名申请零基础seo入门教学
  • 设计制作费属于什么服务seo搜索优化是什么意思
  • 学习网站二次开发优化网站排名软件
  • 建一个类似亨物说网站建设费用阿里巴巴官网
  • 网站建设品牌有哪些怎么在网上做广告
  • 哪个网站做飞机订单网络运营seo是什么
  • 山西笑傲网站建设推广郑州关键词排名公司电话
  • 如何在网站上做网页链接手机网站建设
  • 计算机做网站开发需要什么证书舆情优化公司
  • 网站1g租用价格郑州seo外包v1
  • 深圳哪家公司做网站seo研究中心晴天
  • 网站建设与动态网页设计技师培训
  • python做网站验证码淘宝指数转换
  • 河北汉佳 做网站的公司海外推广营销平台
  • 做微信文章的网站企业专业搜索引擎优化
  • 品牌词类的网站怎么做优化免费搭建网站的软件
  • 如何做网站免费搭桥链接吉林网站seo
  • asp.net 怎样生成网站西安关键词网站排名
  • asp网站漏洞修复插件电话号码宣传广告
  • 用什么做网站开发seo关键词推广渠道
  • 国际网站建设的目的腾讯广告联盟