ZTrade开发填坑记录
本文最后更新于:2 年前
一、多模块构建项目
二、使用PDMan构建数据库
三、使用MybatisPlus
- 在启动类上使用包扫描注解
四、使用Zuul和Eureka
如果需要在Eureka上注册服务,那么都需要@EnableDiscoveryClient注释
在zuul中配置swagger,整合其他微服务的接口文档
注意事项:
swagger下拉列表中,每一个微服务的地址:zuul前缀+微服务前缀+v2/api-docs
(例如:/api/user/v2/api-docs)
修改使用swagger-bootstrap-ui,坐标如下
<dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>swagger-bootstrap-ui</artifactId> <version>1.7</version> </dependency>
五、SpringBoot读取application.yml
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!其他问题请通过下方微信联系!