使用Spring Boot和Thymeleaf上传图片
在这个快速教程中,我们将看看如何在使用Spring Boot和Thymeleaf的Java Web应用程序中上传图片。
2. 依赖项
我们只需要两个依赖项——Spring Boot Web和Thymeleaf:
``<dependency>``
``<groupId>``org.springframework.boot``</groupId>``
``<artifactId>``spring-boot-starter-web``</artifactId>``
``</dependency>``
``<dependency>``
``<groupId>``org.springframework.boot``</groupId>``
``<artifactId>``spring-boot-starter-thymeleaf``</artifactId>``
``</dependency>``