10 2021 档案
摘要:我来填之前MongoDB的坑了,项目中又用到MongoDB的我又想起来了,我这拖延症也是没谁了。 1、在pom.xml中引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star
阅读全文
摘要:1、引入依赖(springboot版本:2.5.4,不知道为什么里面没有@NotEmpty相关的依赖了,网上的说好像新版的Spring Boot不再自动集成hibernate-validation,需要手动添加依赖) <dependency> <groupId>org.springframework
阅读全文