darkings90
V2EX  ›  Java

SpringBoot 解决快速 Bean 注入分享

  •  
  •   darkings90 ·
    kings1990 · Jan 6, 2025 · 5824 views
    This topic created in 509 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
    dabai0806
        1
    dabai0806  
       Jan 6, 2025
    之前弄了个类似的, 不过没有维护了 https://github.com/lly-ke/ImportBeanField
    issakchill
        2
    issakchill  
       Jan 7, 2025
    idea 不是自带这个功能吗现在
    ppllss
        3
    ppllss  
       Jan 7, 2025
    是的 IDEA 现在能自动注入了,感觉用处不大
    darkings90
        4
    darkings90  
    OP
       Jan 7, 2025
    @issakchill #2 不大一样
    IBN5100
        5
    IBN5100  
       Jan 7, 2025
    我喜欢构造器注入呐
    darkings90
        6
    darkings90  
    OP
       Jan 8, 2025
    @IBN5100 #5 也支持的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2583 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 10:39 · PVG 18:39 · LAX 03:39 · JFK 06:39
    ♥ Do have faith in what you're doing.