Skip to content

Intercepts file uploads when uploading files.File upload intercepts, intercepts the file upload suffix, determines the file type according to the file header, intercepts according to the file MIME type, opens the file upload verification, verifies the file hash value, out of the box(文件上传拦截,对文件上传进行安全性校验,拦截文件上传后缀,根据文件头前几位二进制判断文件类型,根据文件MIME类型拦截,开启文…

Notifications You must be signed in to change notification settings

huangliusong/filesecurityspringboot

Repository files navigation

filesecurityspringboot

Maven central top Sonatype Nexus (Snapshots) build

文档(Document)

中文 | EN

top.huangliusong2019

file-security-spring-boot will help you use file-security with Spring Boot

Requirements

  • Java 8+ and
  • Spring Boot 1.5.7+
  • Maven 3.3.9+

Quick Start(out-of-the-box)

<dependency>
  <groupId>top.huangliusong2019</groupId>
  <artifactId>filesecurity-spring-boot-starter</artifactId>
  <version>1.1.3-SNAPSHOT</version>
</dependency>

Dependency

metadata

metadata document of spring

deploy

mvn clean package deploy

mvn deploy

package

[INFO] Reactor Summary:
[INFO] 
[INFO] filesecurity-spring-boot ........................... SUCCESS [  0.615 s]
[INFO] filesecurity ....................................... SUCCESS [  1.116 s]
[INFO] filesecurity-spring-boot-samples ................... SUCCESS [  0.004 s]
[INFO] filesecurity-spring-boot-sample-annotation ......... SUCCESS [  1.348 s]
[INFO] filesecurity-spring-boot-sample-properties ......... SUCCESS [  0.071 s]
[INFO] filesecurity-spring-boot-autoconfigure ............. SUCCESS [  2.161 s]
[INFO] filesecurity-spring-boot-starter ................... SUCCESS [  0.056 s]
[INFO] filesecurity-spring-boot-test-autoconfigure ........ SUCCESS [  0.057 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.492 s
[INFO] Finished at: 2019-07-29T06:11:50Z
[INFO] Final Memory: 36M/459M
[INFO] ------------------------------------------------------------------------

About

Intercepts file uploads when uploading files.File upload intercepts, intercepts the file upload suffix, determines the file type according to the file header, intercepts according to the file MIME type, opens the file upload verification, verifies the file hash value, out of the box(文件上传拦截,对文件上传进行安全性校验,拦截文件上传后缀,根据文件头前几位二进制判断文件类型,根据文件MIME类型拦截,开启文…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published