lalalaXxx
V2EX  ›  问与答

请教一下大佬们,项目开发完了,如何能查看到没有用到的接口?

  •  
  •   lalalaXxx · Mar 26, 2024 · 1916 views
    This topic created in 779 days ago, the information mentioned may be changed or developed.

    环境

    windows
    IDEA2023
    java
    springcloud alibaba
    JDK8
    

    需求

    现在项目开发完了,只能说堪比屎山把,想优化一下代码量,应该有很多没有调用的接口,这个有没有什么办法能排查出来;
    
    9 replies    2024-03-27 08:42:42 +08:00
    abc0123xyz
        1
    abc0123xyz  
       Mar 26, 2024   ❤️ 3
    闭上眼睛,假装看不见
    yKXSkKoR8I1RcxaS
        2
    yKXSkKoR8I1RcxaS  
       Mar 26, 2024
    没文档?
    pV16446Rzg42fUSE
        3
    pV16446Rzg42fUSE  
       Mar 26, 2024
    不去管它,建议下楼喝杯咖啡。
    MajestySolor
        4
    MajestySolor  
       Mar 26, 2024
    没有清晰文档的情况下建议不要给自己添堵
    silentsky
        5
    silentsky  
       Mar 26, 2024 via Android
    加个监控
    106npo
        6
    106npo  
       Mar 26, 2024   ❤️ 1
    也可以把接口都停了,等别人问
    Venow
        7
    Venow  
       Mar 26, 2024 via iPhone
    是想检查代码覆盖率吗?可以 Google 一下工具脚本
    Kriss
        8
    Kriss  
       Mar 26, 2024
    我们的做法是让前端梳理一份接口列表,写个工具筛选出来没使用的接口
    luoshuimumu
        9
    luoshuimumu  
       Mar 27, 2024
    走完全量测试之后,从 ng 日志筛?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1087 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 18:30 · PVG 02:30 · LAX 11:30 · JFK 14:30
    ♥ Do have faith in what you're doing.