Code Monkey home page Code Monkey logo

Comments (4)

MisterChangRay avatar MisterChangRay commented on July 28, 2024

注册输入和实现获取,都不能保证不出错的。

相对比而言,由于是统一注册,代码集中,所以更容易发现写错的地方。实现则要点开一个一个看。

from magic-byte.

FULaBUla avatar FULaBUla commented on July 28, 2024

注册输入和实现获取,都不能保证不出错的。

相对比而言,由于是统一注册,代码集中,所以更容易发现写错的地方。实现则要点开一个一个看。

那不如,不需要手动注册了,直接从接口类获取所有的实现类,然后遍历一遍 cmd 方法自动注册就好了,这样一方面减少了自己手写的风险,然后自动注册的时候提示和谁重了。统一注册要要点开一个一个看,那就是 cmd 写一遍,注册再写一遍也麻烦,搞太多了还有可能眼花

from magic-byte.

MisterChangRay avatar MisterChangRay commented on July 28, 2024

是需要保留手动注册,

  • 自动注册需要扫描classpath, 一般消息也就百十来条,没必要
  • 还有自动注册时,使用了公共类部分抽取不出来cmd值

from magic-byte.

FULaBUla avatar FULaBUla commented on July 28, 2024

是需要保留手动注册,

  • 自动注册需要扫描classpath, 一般消息也就百十来条,没必要
  • 还有自动注册时,使用了公共类部分抽取不出来cmd值

那确实,如果没有 spring 框架或者别的第三方依赖确实不太好实现,但是注册的时候不写 cmd ,只需要在 cmd() 里写一次感觉也回省事儿很多,至少不用点开在看,重复检查了

from magic-byte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.