0

有没有办法对 Spring 进行"瘦身"?不去定制代码的前提下。

 2 years ago
source link: https://www.v2ex.com/t/795275
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Java

有没有办法对 Spring 进行"瘦身"?不去定制代码的前提下。

  abcbuzhiming · 1 天前 · 2093 次点击
Spring 现在也是个庞然大物了,一个非常简单的 Api 跑起来背着一大坨依赖,内存占用几百 M 那都算是少的。我在网上找了找优化方案也没啥结果,Spring 内部基础功能太多导致它自身消耗很大,GraalVM 这东西看着很美,实际远没到可以使用的状态。

我甚至都起过吧 Spring 换掉的想法,但是 Spring 的 IOC 确实好用,而且其它家的这种框架,也没找到一个公认的经过工业环境考验的东西。

感觉 Spring 在 Java 的世界不说对手了,连第二名都找不到

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK