05 2020 档案
摘要:1. starter 命名规则: springboot项目有很多专一功能的starter组件,命名都是spring-boot-starter-xx,如spring-boot-starter-logging,spring-boot-starter-web, 如果是第三方的starter命名一般是:xx
阅读全文
摘要:1.测试环境搭建: 1.1 架构图: product服务提供一个接口: order服务通过feign的方式来调用product的接口: order服务需要引入依赖: <dependency> <groupId>org.springframework.cloud</groupId> <artifact
阅读全文
摘要:问题: 如何在application.properties和application.yml中配置String,Date,Object,Map,List类型的属性,并且idea能提示 先写一个Person 类和一个Dog类: 在properties中配置Person类如下: 如果是yml的格式如下:
阅读全文