2021
10-12
10-12
Spring Boot 实现图片上传并回显功能
一、常规形式1项目结构2配置文件及环境设置(1)配置文件#应用服务WEB访问端口server.port=8080#spring静态资源扫描路径spring.resources.static-locations=classpath:/static/#访问template下的html文件需要配置模板spring.thymeleaf.prefix.classpath=classpath:/templates/#是否启用缓存spring.thymeleaf.cache=false#模板文件后缀spring.thymeleaf.suffix=.html#模板文件编码spring.thymeleaf.encoding=UTF-8#上传...
继续阅读 >