HIT-ReFreSH / JMobileSuit

Light weight Mobile Suit for Java.
MIT License
6 stars 42 forks source link

V2 Refactor: Client instantiation method #24

Open FerdinandSu opened 12 months ago

FerdinandSu commented 12 months ago

Use Dependency Injection to change the instantiation method of the client application (SuitClient) from singleton mode to single request mode to facilitate refreshing the application context between different requests, facilitating database operations, and providing support for parallelism.

利用依赖注入,将客户端应用(SuitClient)的实例化方式从单例模式改为单请求模式,以方便在不同的请求间刷新应用上下文,方便对数据库的操作,提供对并行的支持