繁体   English   中英

从 spring 引导向后迁移到 spring 内核

[英]Backward migration from spring boot to spring core

I know that spring boot is a wrapper for spring framework, so is it possible to achieve better running time performance for a application by migrating backwards from spring boot to spring core? 如果是这样,需要进行哪些更改? 只是改变配置文件和修改一些注解就够了吗?

Spring 引导只是通过使用良好的默认行为使 Spring 应用程序的配置和设置更容易一些的助手。 它添加了一些用于启动应用程序(配置)的功能,但它没有为“正常”运行时添加(那么多)行为。

因此,删除 Spring Boot通常不会显着提高运行时性能(在速度方面)。

如果您的应用程序使用数据库,并且这与您的性能问题有某种关系,那么您可能应该优化它。 (数据库索引,Better/Less 查询,纯 SQL 而不是 JPA,缓存,......)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM