Comments (4)
我觉得这就是一个很简单的封装**,定义了注册feign客户端扫包的包名,让整个框架保持统一风格,并且pig还提供生成脚手架的archetype,避免了不必要的麻烦。
一处定义跟处处定义哪个比较好
from pig.
-
- 本人有代码洁癖
这里指定了整个框架的 扫描范围, 不需要 每个 Main 上边都是这种 @@EnableFeignClients("com.pig4cloug.xx.xxx")
你不觉着代码很丑?
-
- common-feign 模块同样支持 spi 的注入, 通过我们文档提供的 pig-gen 的archetype 你就完全不需要去考虑什么扫描范围
约定大于配置
- common-feign 模块同样支持 spi 的注入, 通过我们文档提供的 pig-gen 的archetype 你就完全不需要去考虑什么扫描范围
-
- 通过上述两种形式,可以避免同包、不同包的扫描问题和排错问题
from pig.
这种方式统一了框架的规范和行为,避免不同开发同学照成不同配置,减少团队协作的成本,提高代码质量。
对于新手有疑问很好,可以交流,很多事情都有不同的考虑角度。
from pig.
这是一个开源项目,我们非常欢迎您的贡献和加入,无论是微不足道的清理或大的新功能。
https://www.yuque.com/pig4cloud/pig/lceu0v
from pig.
Related Issues (20)
- 前端下载功能重构
- 刷新token不定期会出现invalid_grant异常导致令牌失效
- C端用户feign调用,只传了token,没有传CLIENT-TOC,鉴权就会有问题
- 创建了一个新租户,怎么给这个租户创建登录账号呢 HOT 1
- 代码生成中没有App.java
- 本地运行跑不起来,本人比较菜,麻烦帮我看下.. 谢谢了~ HOT 2
- pig后台管理页面的菜单导航宽度无法调整吗?
- 避免使用 @xxx@ 表达式配置项目 HOT 6
- 有考虑基于spring cloud Tencent实现吗? HOT 1
- token 传递过期怎么处理?
- docker maven 构建问题 HOT 1
- 如何迁移替换云原生网关? HOT 1
- 频繁调用接口登录,用户登录失败写日志导致的biz服务挂掉
- sentinel dashboard模块是被移除了吗? HOT 1
- nacos支持postgresql数据库 HOT 1
- logback配置中屏蔽nacos心跳的配置是否可以去除 HOT 1
- 本地host读取问题 HOT 1
- Dependency Dashboard
- Spring Boot Actuator敏感信息泄露 HOT 3
- BUG:RedisUtils. del(String... keys)传参有误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pig.