当前位置:网站首页>Record an error report, solve the experience, rely on repetition
Record an error report, solve the experience, rely on repetition
2022-07-02 14:56:00 【d_ o_ n_ g2】
There are several cases of this type of error reporting , When I met this time module The same class inside depends on multiple times .
1、 For example, the duplicate package is A.B rely on A,C Also depends on A,D rely on B and C and A. So here's the practical solution D The problem of repeated dependence . therefore B Medium A and C Medium A Need to use implementation To rely on . such D There will be no dependency repetition .D Dependency in A It can be used api perhaps implementation All right . In general, this is the case , This A It's kind of like public api 了 . For public api I personally think it can be similar to that kind of Google Library , Use both directly implementation That's it . Or set up a public module, The libraries inside are all based on api Form dependent provision .
Here is a confusing place .
B api A , C implementation D.
If D implementation B:D have access to A,C Out of commission B.
D api B: D have access to A,C Be able to use B.
边栏推荐
- Actual combat sharing of shutter screen acquisition
- Advanced C language (learn malloc & calloc & realloc & free in simple dynamic memory management)
- C# richTextBox控制显示最大行数
- STM32库函数进行GPIO初始化
- C RichTextBox controls the maximum number of lines displayed
- 复用和分用
- C语言中的printf函数和scanf函数
- C语言中的算术运算及相关练习题
- 【NOI模拟赛】刮痧(动态规划)
- 记一次报错解决经历依赖重复
猜你喜欢
Have you learned the wrong usage of foreach
Li Chuang EDA learning notes 15: draw border or import border (DXF file)
Fundamentals of software testing
Large top heap, small top heap and heap sequencing
MFC timer usage
It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
How does CTO help the business?
Fabric.js 缩放画布
ONNX+TensorRT:将预处理操作写入ONNX并完成TRT部署
随机推荐
taobao. trade. memo. Add (add remarks to a transaction) interface, Taobao store flag insertion interface, Taobao order flag insertion API interface, oauth2.0 interface
天猫商品详情接口(APP,H5端)
taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
Kityformula editor configure font size and spacing
NLA natural language analysis realizes zero threshold of data analysis
STM32库函数进行GPIO初始化
MFC CString to char*
【NOI模拟赛】刮痧(动态规划)
Full of knowledge points, how to use JMeter to generate encrypted data and write it to the database? Don't collect it quickly
Obsidian installs third-party plug-ins - unable to load plug-ins
Makefile separates file names and suffixes
Database connection pool and data source
Fabric. JS dynamically set font size
Fabric.js 动态设置字号大小
##51单片机实验之简易验证码发生器
Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
Introduction to mathjax (web display of mathematical formulas, vector)
Threejs controller cube space basic controller + inertia control + flight control
【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
LeetCode 2320. Count the number of ways to place the house