V2EX  ›  英汉词典

Autowiring

定义 Definition

Autowiring(常用于软件工程/依赖注入语境)指框架根据类型、名称或注解等规则,自动把一个对象所依赖的组件“注入/连接”到它里面,从而减少手动配置(如显式写出每个依赖的装配关系)。在 Spring 等框架中非常常见。

发音 Pronunciation

/ˈɔːtoʊˌwaɪərɪŋ/

例句 Examples

The framework supports autowiring for most components.
该框架支持对大多数组件进行自动装配。

In a large application, autowiring can reduce boilerplate configuration, but it may also make dependencies less obvious if naming and qualifiers aren’t used carefully.
在大型应用中,自动装配可以减少样板式配置,但如果不谨慎使用命名与限定符,也可能让依赖关系变得不够直观。

词源 Etymology

由 **auto-**(“自动的”)+ wiring(“布线/接线”)构成。原本 wiring 指电路连接;在软件里借喻为“把组件连接起来”。因此 autowiring 字面意思就是“自动接线/自动连接”,引申为“自动装配依赖”。

相关词 Related Words

文学与著作中的用例 Literary Works

  • Spring in Action(Craig Walls)
  • Pro Spring(如 Pro Spring 5 等版本,Iuliana Cosmina 等)
  • Spring Framework Reference Documentation(Spring 官方参考文档)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   630 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 20:58 · PVG 04:58 · LAX 12:58 · JFK 15:58
♥ Do have faith in what you're doing.