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

手机网站设置定制开发小程序

手机网站设置,定制开发小程序,中国专业摄影网,做棋牌游戏网站赚钱吗作者主页#xff1a;舒克日记 简介#xff1a;Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍 系统具备友好性且功能完善。管理员登录进入后台之后#xff0c;主要完成花材选择管理#xff0c;用户管理#xff0c;鲜花管理#xff0c;鲜花出入… 作者主页舒克日记 简介Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍 系统具备友好性且功能完善。管理员登录进入后台之后主要完成花材选择管理用户管理鲜花管理鲜花出入库管理鲜花订单管理等。 用户联系客服咨询问题查看鲜花可以收藏购买评论鲜花支付订单管理个人订单等 环境要求 1.运行环境最好是java jdk1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境Tomcat7.x,8.X,9.x版本均可 4.硬件环境windows7/8/10 4G内存以上或者Mac OS; 5.是否Maven项目是查看源码目录中是否包含pom.xml;若包含则为maven项目否则为非maven.项目 6.数据库MySql5.7/8.0等版本均可 技术栈 运行环境jdk8 tomcat9 mysql5.7 windows10 服务端技术Java、Spring、SpringMVC、MybatisSSM 使用说明 1.使用Navicati或者其它工具在mysql中创建对应sq文件名称的数据库并导入项目的sql文件 2.使用IDEA/Eclipse/MyEclipse导入项目修改配置运行项目 3.将项目中config-propertiesi配置文件中的数据库配置改为自己的配置然后运行 运行指导 idea导入源码空间站顶目教程说明(Vindows版)-ssm篇 http://mtw.so/5MHvZq 源码地址http://codegym.top 运行截图 文档截图 项目截图 代码 package com.controller;import java.io.File; import java.io.IOException; import java.util.Date;import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; 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,HttpServletRequest request) throws Exception {if (file.isEmpty()) {throw new EIException(上传文件不能为空);}String fileExt file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(.)1);String fileName new Date().getTime().fileExt;File dest new File(request.getSession().getServletContext().getRealPath(/upload)/fileName);file.transferTo(dest);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 void download(RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) {try {File file new File(request.getSession().getServletContext().getRealPath(/upload)/fileName);if (file.exists()) {response.reset();response.setHeader(Content-Disposition, attachment; filename\ fileName\);response.setHeader(Cache-Control, no-cache);response.setHeader(Access-Control-Allow-Credentials, true);response.setContentType(application/octet-stream; charsetUTF-8);IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream());}} catch (IOException e) {e.printStackTrace();}}}
http://www.zqtcl.cn/news/48364/

相关文章:

  • 怎么创建公司的个人网站包头网站 建设
  • 河北邯郸做网站网站建设方案的含义
  • 网站备案核验号免费自助建站怎么样
  • 如何给网站优化gta5房子网站建设中
  • 网站外链怎么购买wordpress注册链接插件
  • 百度关键词优化软件网站如何做网站性能优化
  • 烟台网站推广广州公司php做视频直播网站
  • 建设营销型网站流程ftp上传网站
  • 网站建设基本情况最早做淘宝返利的网站
  • 建筑公司网站应该则么做设计书籍频道开放说明
  • 网站的管理维护企业录
  • 网站建设基本内容成都企业网站建设公司电话
  • 南通市建设工程网站做电子的外单网站有哪些的
  • 杭州模板建站定制鞍山网站
  • 为什么不能用来名字做网站名百姓网推广电话
  • 昆明定制化网站建设企业网站建设合同(一)
  • 哪里有培训网站开发订阅号上链接的网站怎么做的
  • 网页设计网站维护松江网站建设培训费用
  • 新乡彩票网站建设网站开发工作时间
  • 广东网站建设方案报价比一网站建设
  • 建设好网站的在线沟通功能全网项目资源整合平台
  • 0建设营销型网站步骤wordpress前台插件
  • 现在什么网站做推广比较好东营市东营网站设计
  • 聊城大型门户网站建设免费图片素材高清
  • 手机怎么开网站吕梁网络推广
  • 手机能建设网站吗东莞企业网站建设
  • 揭阳专业做网站网站建设怎么做账
  • 做美工需要知道的设计网站wordpress导航怎么添加连接
  • 制作网站企业微信建网站平台的
  • 网站推广和优化的原因网址创建