Java动态构建日期年月日目录
1.导入依赖
<!-- 日期工具栏依赖 --> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> </dependency>
2.创建目录
String folder = new DateTime().toString("yyyy/MM/dd");
<!-- 日期工具栏依赖 --> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> </dependency>
String folder = new DateTime().toString("yyyy/MM/dd");