📌 SpringBoothttps://pic.stackoverflow.wiki 🔧 🔖 PicuangApache 2.0/~~~~
Picuang``WEBPicuangjpg
/`jpeg`/`png`/`svg`/`gif`/`bmp`/`ico`/`tiff`PicuangPicuang
Picuang````()``
URL``HTML``Markdown
Intellij IDEA
Thymeleaf
Spring Boot
JQuery
Bootstrap
Axios
PicuangIDEAMavenwaruploadImages
UploadController.java
String path = ClassUtils.getDefaultClassLoader().getResource("").getPath() + "static/uploadImages/";
PicuangThymeleafstatic
target
uploadImages
config.ini
application.properties
#Picuang
//
spring.servlet.multipart.max-file-size=20MB
//
spring.servlet.multipart.max-request-size=20MB
#Picuang
Tomcat TomcatNginxPicuang
conf/context.xml``</Context>
<Resources cachingAllowed="true" cacheMaxSize="100000" />
conf/server.xml``Connector
maxPostSize="209715200"
location / {
client_max_body_size 100m;
Picuang
Picuang
PR