Spring工程 使用日期类型

第一步:在model层中的pojo类,声明一个日期类型的变量

第二步:导入相应的包:java.time.LocalDate

第三步:在pom.xml中添加相应的依赖

1 <dependency>
2         <groupId>org.thymeleaf.extras</groupId>
3         <artifactId>thymeleaf-extras-java8time</artifactId>
4     </dependency>  

猜你喜欢

转载自www.cnblogs.com/hzyhx/p/11107991.html
今日推荐