简体   繁体   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? 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? If so, what changes need to be made?如果是这样,需要进行哪些更改? Is just changing the configuration files and modifying some annotations enough?只是改变配置文件和修改一些注解就够了吗?

Spring Boot is just a helper to make the configuration and setup of a Spring application a bit easier by using good default behaviours. Spring 引导只是通过使用良好的默认行为使 Spring 应用程序的配置和设置更容易一些的助手。 It adds some functionality for starting the application (configuration), but it doesn't add (that much) behaviour for the "normal" runtime.它添加了一些用于启动应用程序(配置)的功能,但它没有为“正常”运行时添加(那么多)行为。

So removing Spring Boot will typically not give you a significant improvement in runtime performance (in terms of speed).因此,删除 Spring Boot通常不会显着提高运行时性能(在速度方面)。

If your application use a database, and this is somehow related to your performance issue, then you maybe should optimize this.如果您的应用程序使用数据库,并且这与您的性能问题有某种关系,那么您可能应该优化它。 (Database Index, Better/Less queries, pure SQL instead of JPA, caches, ....) (数据库索引,Better/Less 查询,纯 SQL 而不是 JPA,缓存,......)

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

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