2021
05-23
05-23
SpringBoot上传文件并配置本地资源映射来访问文件的实例代码
1.准备工作1、新建一个SpringBoot项目加上web依赖,所有依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.thymeleaf</groupId><artifactId>thymeleaf-spring5</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope...
继续阅读 >