请问,现数据库有两个字段,一个是源文件路径字段,一个是目标文件路径字段,java中怎样把D盘需要的目录通过MultipartFile进行遍历,然后再把文件的全路径写到数据库中。
server.port=9020
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost/MYJPA?useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=12345678
spring.jpa.show-sql=true
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.hibernate.ddl-auto=validate