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

抚顺市网站建设_网站建设公司_漏洞修复_seo优化

做网站要遵守的基本原则,网站最好推广的方式,易购商城app,太原新建火车站末尾获取源码 开发语言#xff1a;Java Java开发工具#xff1a;JDK1.8 后端框架#xff1a;SSM 前端#xff1a;采用JSP技术开发 数据库#xff1a;MySQL5.7和Navicat管理工具结合 服务器#xff1a;Tomcat8.5 开发软件#xff1a;IDEA / Eclipse 是否Maven项目#x… 末尾获取源码 开发语言Java Java开发工具JDK1.8 后端框架SSM 前端采用JSP技术开发 数据库MySQL5.7和Navicat管理工具结合 服务器Tomcat8.5 开发软件IDEA / Eclipse 是否Maven项目是 目录 一、项目简介 二、课题背景和意义 三、系统项目截图 3.1管理员功能实现 3.2用户功能实现 四、核心代码 4.1登录相关 4.2文件上传 4.3封装 一、项目简介 互联网发展至今无论是其理论还是技术都已经成熟而且它广泛参与在社会中的方方面面。它让信息都可以通过网络传播搭配信息管理工具可以很好地为人们提供服务。针对网络游戏信息管理混乱出错率高信息安全性差劳动强度大费时费力等问题采用网络游戏公司官方平台可以有效管理使信息管理能够更加科学和规范。 网络游戏公司官方平台在Eclipse环境中使用Java语言进行编码使用Mysql创建数据表保存本系统产生的数据。系统可以提供信息显示和相应服务其管理员管理游戏管理公司简介管理用户和招聘信息。用户联系客服通过游戏中心下载游戏收藏游戏查看公司招聘信息。 总之网络游戏公司官方平台集中管理信息有着保密性强效率高存储空间大成本低等诸多优点。它可以降低信息管理成本实现信息管理计算机化。 二、课题背景和意义 互联网发展至今无论是其理论还是技术都已经成熟而且它广泛参与在社会中的方方面面。它让信息都可以通过网络传播搭配信息管理工具可以很好地为人们提供服务。所以各行业尤其是规模较大的企业和学校等都开始借助互联网和软件工具管理信息传播信息共享信息等等以此可以增强自身实力提高在同行业当中的竞争能力并从各种激烈的竞争中获取发展的机会。针对网络游戏信息管理混乱出错率高信息安全性差劳动强度大费时费力等问题经过分析和考虑在目前的情况下可以引进一款网络游戏公司官方平台这样的现代化管理工具这个工具就是解决上述问题的最好的解决方案。它不仅可以实时完成信息处理还缩短网络游戏信息管理流程使其系统化和规范化。同时还可以减少工作量节约网络游戏信息管理需要的人力和资金。所以网络游戏公司官方平台是信息管理环节中不可缺少的工具它对管理者来说非常重要。 现如今信息种类变得越来越多信息的容量也变得越来越大这就是信息时代的标志。近些年计算机科学发展得也越来越快而且软件开发技术也越来越成熟因此在生活中的各个领域只要存在信息管理几乎都有计算机的影子可以说很多行业都采用计算机的方式管理信息。信息计算机化处理相比手工操作有着保密性强效率高存储空间大成本低等诸多优点。针对网络游戏信息管理采用网络游戏公司官方平台可以有效管理使信息管理能够更加科学和规范。 总之在实际中使用网络游戏公司官方平台其意义如下 第一点网络游戏公司官方平台的实际运用可以帮助管理人员在短时间内完成信息处理工作 第二点通过系统页面的合理排版布局可以更加直观的展示系统的内容并且使用者可以随时阅读页面信息随时操作系统提供的功能 第三点可以实现信息管理计算机化 第四点可以降低信息管理成本 三、系统项目截图 3.1管理员功能实现 管理员进入指定功能操作区之后可以管理游戏信息。其页面见下图。管理员在当前页面增删改查游戏信息。 管理员进入指定功能操作区之后可以管理招聘信息。其页面见下图。管理员在当前页面增删改查岗位招聘信息。 管理员进入指定功能操作区之后可以与用户进行聊天。其页面见下图。管理员对用户提交的咨询内容进行一一回复。 管理员进入指定功能操作区之后可以管理公司简介。其页面见下图。管理员发布公司简介信息包括公司文化公司介绍联系方式等信息。 管理员进入指定功能操作区之后可以管理游戏类型。其页面见下图。管理员登记游戏类型删除修改游戏类型。 3.2用户功能实现 用户进入指定功能操作区之后可以查看公司的招聘信息。其页面见下图。用户查看招聘的岗位工资待遇职位要求等信息。 用户进入指定功能操作区之后可以查看游戏信息。其页面见下图。用户在当前页面收藏游戏评价游戏下载游戏文件。 用户进入指定功能操作区之后可以联系客服。其页面见下图。用户提交咨询信息客服也会立即回答用户的疑问。 四、核心代码 4.1登录相关 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.MD5Util; 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);userService.updateById(user);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();} }4.2文件上传 package com.controller;import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import java.util.UUID;import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.util.ResourceUtils; import org.springframework.web.bind.annotation.PathVariable; 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.RestController; import org.springframework.web.multipart.MultipartFile;import com.annotation.IgnoreAuth; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.entity.ConfigEntity; import com.entity.EIException; import com.service.ConfigService; import com.utils.R;/*** 上传文件映射表*/ RestController RequestMapping(file) SuppressWarnings({unchecked,rawtypes}) public class FileController{Autowiredprivate ConfigService configService;/*** 上传文件*/RequestMapping(/upload)public R upload(RequestParam(file) MultipartFile file,String type) throws Exception {if (file.isEmpty()) {throw new EIException(上传文件不能为空);}String fileExt file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(.)1);File path new File(ResourceUtils.getURL(classpath:static).getPath());if(!path.exists()) {path new File();}File upload new File(path.getAbsolutePath(),/upload/);if(!upload.exists()) {upload.mkdirs();}String fileName new Date().getTime().fileExt;File dest new File(upload.getAbsolutePath()/fileName);file.transferTo(dest);FileUtils.copyFile(dest, new File(C:\\Users\\Desktop\\jiadian\\springbootl7own\\src\\main\\resources\\static\\upload/fileName));if(StringUtils.isNotBlank(type) type.equals(1)) {ConfigEntity configEntity configService.selectOne(new EntityWrapperConfigEntity().eq(name, faceFile));if(configEntitynull) {configEntity new ConfigEntity();configEntity.setName(faceFile);configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put(file, fileName);}/*** 下载文件*/IgnoreAuthRequestMapping(/download)public ResponseEntitybyte[] download(RequestParam String fileName) {try {File path new File(ResourceUtils.getURL(classpath:static).getPath());if(!path.exists()) {path new File();}File upload new File(path.getAbsolutePath(),/upload/);if(!upload.exists()) {upload.mkdirs();}File file new File(upload.getAbsolutePath()/fileName);if(file.exists()){/*if(!fileService.canRead(file, SessionManager.getSessionUser())){getResponse().sendError(403);}*/HttpHeaders headers new HttpHeaders();headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); headers.setContentDispositionFormData(attachment, fileName); return new ResponseEntitybyte[](FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);}} catch (IOException e) {e.printStackTrace();}return new ResponseEntitybyte[](HttpStatus.INTERNAL_SERVER_ERROR);}}4.3封装 package com.utils;import java.util.HashMap; import java.util.Map;/*** 返回数据*/ public class R extends HashMapString, Object {private static final long serialVersionUID 1L;public R() {put(code, 0);}public static R error() {return error(500, 未知异常请联系管理员);}public static R error(String msg) {return error(500, msg);}public static R error(int code, String msg) {R r new R();r.put(code, code);r.put(msg, msg);return r;}public static R ok(String msg) {R r new R();r.put(msg, msg);return r;}public static R ok(MapString, Object map) {R r new R();r.putAll(map);return r;}public static R ok() {return new R();}public R put(String key, Object value) {super.put(key, value);return this;} }
http://www.ihoyoo.com/news/108347.html

相关文章:

  • 为什么选php语言做网站吉林省建设银行网站
  • 学院网站建设用户需求分析报告海洋生态文明建设的网站名
  • 贵阳网站公司如何推销网站建设
  • 济南网站制作多少钱影视自助建站
  • 黄骅市美食北京seo薪资
  • 工艺品网站怎么做wordpress functions.php
  • 东莞手机网站建设怎么选网站备案密码怎么找回
  • 济南网站建设哪个好手机建设网站的目的
  • 大连网站建设费用唐山免费网站制作
  • 企业网站功能模块介绍咨询学校网站开发费用
  • 各大门户网站谷哥做网站 是如何推广的
  • 网站建设服务亿企网络中文域名
  • 做网站一般都需要什么功能要怎么网络做推广
  • 网站如何创建首页怎么选择徐州网站开发
  • iis网站服务器安全隐患分析安徽城乡建设局网站
  • 永仁县工程建设信息网站温州网站建设钱
  • 公司网站怎么做站外链接申请网站服务器
  • 萧县做网站的公司国家信用信息企业公示网官网
  • 东莞网站建设的公司南京网站优化工具
  • 做棋牌推广网站违法不新闻今天
  • 设计之窗网站如何撰写网站建设方案书
  • 怎么给喜欢的人做网站找人做网站一套多少钱
  • WordPress小说漫画主题国外seo快速排名工具
  • 郑州高端品牌网站建设招商加盟的网站应该怎么做
  • 淘宝客为什么做网站flash 网站带后台
  • html5手机网站实例百度链接收录
  • 网站优化怎么做 百度文库颍上建设局网站
  • 武威市凉州区建设局网站服装网站html模板
  • 免费学校网站模板htmlwordpress 网校插件
  • 静态动漫网站模板网页设计师培训和继续教育的机会