Spring Boot
silentkunden
纸上得来终觉浅!
展开
-
SpringBoot使用WangEditor富文本编辑器
wangEditor是基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。若需要使用可以在wangEidtor官网上查看开发文档,或者去直接下载依赖包。直接上前端代码:<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://w...原创 2020-01-14 20:23:39 · 1965 阅读 · 1 评论 -
SpringBoot使用Kaptcha验证码
Kaptcha 是一个可高度配置的实用验证码生成工具。个人认为还是挺好用的,虽然现有更加安全的验证方式。此次是使用springboot+ssm,使用maven管理。直接上步骤:pom文件添加jar包依赖: <!-- kaptcha验证码 --> <dependency> <groupId>com.github...原创 2020-01-14 20:14:00 · 277 阅读 · 0 评论 -
SpringBoot 文件上传
SpringBoot上使用文件上传 编写静态页面,静态页面可以放在classpath/static目录下或者是src/main/webapp目录下及其子目录下都可以 <!DOCTYPE html><html><head><meta charset="UTF-8"><title>SpringBoot上传文件<...原创 2019-03-05 11:53:31 · 130 阅读 · 0 评论 -
SpringBoot 结合layUI实现文件上传
首先是网站的配置:先是pom文件的引入,在此把整个文件全拷贝了:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaL...原创 2019-06-12 11:06:22 · 6641 阅读 · 2 评论 -
SpringBoot 实现文件下载
文件下载的功能,在此是点击了下载的链接以后,前台把资源的ID返回到后台请求下载。后台先把该资源的URL获取出来,若资源不存在,则返回“-1”。/* * 下载文件 */ @RequestMapping("/download") @ResponseBody public String downloadFile(HttpServletRequest request, @Req...原创 2019-06-12 11:17:22 · 1870 阅读 · 0 评论 -
SpringBoot 使用kaptcha验证码
首先在pom文件中引入坐标:<!-- kaptcha验证码 --> <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> ...原创 2019-06-12 11:31:16 · 212 阅读 · 0 评论