darkings90
V2EX  ›  Java

SpringBoot 解决快速 Bean 注入分享

  •  
  •   darkings90 ·
    kings1990 · Jan 6, 2025 · 7398 views
    This topic created in 666 days ago, the information mentioned may be changed or developed.

    IDEA 插件市场搜 Bean Assistant

    功能:可以根据快捷字直接写例如某个 Service 的方法调用,插件在类里面自动写上 Service 的注入代码,省去手动操作。

    演示:https://github.com/kings1990/bean-assistant-doc

    6 replies  •  2025-01-08 16:53:56 +08:00
    JulianEpoch
    JulianEpoch
    Jan 6, 2025
    1
    之前弄了个类似的, 不过没有维护了 https://github.com/lly-ke/ImportBeanField
    issakchill
    issakchill
    Jan 7, 2025
    2
    idea 不是自带这个功能吗现在
    ppllss
    ppllss
    Jan 7, 2025
    3
    是的 IDEA 现在能自动注入了,感觉用处不大
    darkings90
    darkings90
    OP
    Jan 7, 2025
    4
    @issakchill #2 不大一样
    IBN5100
    IBN5100
    Jan 7, 2025
    5
    我喜欢构造器注入呐
    darkings90
    darkings90
    OP
    Jan 8, 2025
    6
    @IBN5100 #5 也支持的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5520 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:15 · PVG 11:15 · LAX 19:15 · JFK 22:15
    ♥ Do have faith in what you're doing.