Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java版本,几点建议 #1

Open
yyc6698 opened this issue Sep 23, 2022 · 1 comment
Open

java版本,几点建议 #1

yyc6698 opened this issue Sep 23, 2022 · 1 comment

Comments

@yyc6698
Copy link

yyc6698 commented Sep 23, 2022

1.应该尽量避免使用map入参开放mvc接口,若为了快速开发,应当从url上做好区分,为后续引入swagger这样的api文档支持做准备。
2.线程栈里的map结构可定义为抽象上下文,由开发者二次开发的时候,自行扩展。上下文贯穿所有接口,登录时赋值,借用threadlocal机制随处可取。
3.部分代码规范可能需要形成,快速开发除了集成大部分框架,开发好通用业务外,应该设计一些东西支持高扩展,不做设计的业务或架构,往往只会带来糟糕的设计。

@1nchaos
Copy link

1nchaos commented Jul 25, 2024

哈哈哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants