这个小项目主要使用java实现了一个简单的图片上传预览功能,废话不多说,先上实现成果 ^ _ ^💯
预览
登录页
主页
上传页
图片预览
项目架构
后端: SpringBoot + shiro + mybatis-plus + druid + hutool
前端: layui + viewer
项目结构
├─src├─main│ ├─java│ │ └─com│ │└─zy│ │└─is│ │ │ ImagesShowApplication.java -- 主启动类│ │ ├─common-- 公共包│ │ │ ├─api -- api配置│ │ │ ├─config -- 系统配置│ │ │ ├─exception-- 异常处理│ │ │ ├─mybatis -- mybatis配置│ │ │ ├─properties -- 参数配置│ │ │ ├─shiro -- shiro权限配置│ │ │ └─utils-- 工具包│ │ ├─controller -- 控制层│ │ ├─domain-- 实体│ │ ├─mapper -- 数据库访问层│ │ └─service-- 服务层│ │ └─impl-- 服务层实现│ ││ └─resources││ application.yml││ log4j2-spring.xml│├─config││ehcache.xml│├─mapper││SysUserMapper.xml│├─static-- 前端静态文件││ └─assets││├─bootstrap ││├─css││├─img ││├─jq-module ││├─jquery││├─js ││├─layui ││└─viewer│└─templates-- 前端页面│ └─test
🔚END
考虑到篇幅的问题,不宜过长~ 所以具体实现放在下一篇啦^ _ ^
需要源码可以私聊我领取哦 😇