SpringBoot专栏
SpringBoot
industry2018
confidence in yourself is the first step to success!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot热部署配置
为什么使用热部署配置?在简单的项目中,可以不使用热部署配置,但是在微服务模块中,模块较多,重启相对会麻烦一点,可以考虑使用热部署插件。下面是热部署配置的步骤:1、添加pom依赖,包括dependency和plugin<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId>原创 2021-05-23 16:06:46 · 381 阅读 · 0 评论 -
SpringBoot整合MongoDB出错“Unsatisfied dependency expressed through field ‘mongoTemplate‘”
启动项目时,报错如下:Unsatisfied dependency expressed through field 'mongoTemplate'有人说在项目启动类上面加如下配置可以解决:@SpringBootApplication(exclude = {MongoAutoConfiguration.class,MongoDataAutoConfiguration.class})重新启动项目,发现确实没有报错了,但是在其它类中引用了MongoTemplate的地方就会报错,卧槽(无法自动原创 2021-03-05 17:40:51 · 3032 阅读 · 0 评论
分享