Skip to content

java版本,几点建议 #1

Description

@yyc6698

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions