JAVA图片管理工具

JAVA图片管理工具

码云地址

https://gitee.com/songqiming/ywdf

介绍

一款公共图片上传和读取的小工具

软件架构

基于mybatis-plus和spring-boot项目

安装教程

用项目中的sql创建数据库,修改数据库连接
讲prop-web.yml文件中的imagePathPrefix修改为需要的路径,启动项目就OK了

使用说明

提供两个接口

/pub/uploadImage(上传图片接口)

参数名必选类型说明
fileMultipartFile图片文件
typestring自定义图片存放归类,比如机构图片为org
isResizestring是否剪裁缩略图(true-是),默认不剪裁,剪裁后才能在获取图片时才能获取缩略图
widthint缩略图宽(如果isResize为true则不可为空)
heightint缩略高度(如果isResize为true则不可为空)

返回示例

{
  "retCode": "0000",
  "retMsg": "操作成功",
  "data": {
    "imageId": 10
  }
}

返回参数说明

参数名类型说明
imageIdint图片id

/pub/getImage(读取图片接口)

直接在浏览器输入:
http://XXXX/pub/getImage?id=XX
剪裁图片:
http://XXXX/pub/getImage?id=XX&isResize=true
如果想放入标签,把链接写到src属性中即可

图片存储说明

图片会存在prop-web.yml中imagePathPrefix路径下,按照上传图片接口的type参数以月为单位存储,缩略图存在tumb目录下

基于Java Web技术的图片管理系统 的设计与实现 本科毕业设计 目 录 第1章 引言 6 1.1 课题研究目的及意义 6 1.2 课题研究的内容 7 2.1 用户功能需求 7 图片收藏数据库查询系统图片收藏数据库查询系统是方便用户对建筑图片的管理,主 要功能包括添加图片功能、删除图片功能、修改图片功能、查询图片功能。 7 2.2 性能需求 7 2.3 主要技术分析 8 3.1 系统功能分析 9 3.2 处理流程设计 10 3.2.1 系统操作流程 10 3.2.2 数据增加流程 12 3.2.3 数据修改流程 13 3.2.4 数据删除流程 13 3.3 系统用例图 14 3.4 数据库设计 15 3.4.1 Mysql介绍 15 3.4.2 数据库表结构 16 3.4.3 数据库连接技术 18 3.5 系统E-R图 24 第4章 详细设计 24 4.1 用户登录 24 4.2 图像类别管理 26 4.3 图像信息管理 28 4.4 图片信息查询 30 第5章 系统调试与测试 32 5.1 程序调试 32 5.2 程序的测试 32 5.2.1 测试的重要性及目的 32 5.2.2 测试的步骤 34 5.2.3 测试的主要内容 34 第6章 结论 36 6.1 系统评价 36 6.2 安全性问题 37 摘 要 近十几年来,网络取得了令人难以置信的发展速度。人们在世界各地都可以共享信息、 进行电子商务交易、利用网络在线办公、在线办理业务等,这些都不断促进了Web应用的 发展。动态网站更是以其强交互性、自动更新、形式多样的优越性迅速发展,Web2.0互 联网模式的发展已经成为互联网新的发展趋势。 本系统采用了B/S(Browser/Server)体系结构,JSP(Java Server Page)作为前台开发工具,MySQL作为后台数据库进行开发。系统分为管理员和用户两个 角色,其中管理员的主要功能是图片的增删改查,用户的主要功能有注册、登录、浏览 图片等。本系统是一个基于JavaWeb技术的图片管理系统的设计与实现,不同分类的图片 可以满足不同人群对不同风格类型图片的需求,是一个简单的JavaWeb应用,可以带给用 户一个简洁、方便的新体验。 关键词:Java Web技术、JSP、MySQL、图片管理系统 Abstract Over the past decade or so, the Internet has made incredible progress.People all over the world can share information, conduct e- commerce transactions, use the Internet to work online, do business online, and so on.All of this has contributed to the development of Web applications.Dynamic web sites are rapidly evolving with the advantages of strong interactivity, automatic updates, and forms.The development of the web 2.0 Internet model has become the new trend of the Internet. This system USES the B/S (Browser/Server) architecture, and the JSP (Java Server Page) as the foreground development tool, and MySQL as the backend database for development.System is divided into two characters, administrators and users with the administrator's main function is picture to add and delete, the main function of the user register, login, browse pictures, etc.This system is based on a JavaWeb technology system, the design and implementation of the images of different classification can meet the needs of different people
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值