Spring Boot for Java Web应用程序有哪些缺点? [英] What are the disadvantages of Spring Boot for Java web applications?

查看:260
本文介绍了Spring Boot for Java Web应用程序有哪些缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[这需要投票重新开始回答。]

[This needs to be voted to be reopened to answer.]

弹簧启动被认为是制作新弹簧应用程序的默认设置设置更容易并自动连接常见的依赖项。

Spring boot is tipped as being the default go to when making a new spring application as it makes set up easier and automatically wires in common dependencies.

我还在行业中看到以广告宣传的方式使用spring-boot。

I am yet in industry to see spring-boot used in the manner advertised.

事实上,简明扼要,开发人员采用Spring引导程序时遇到的缺点是事实上的Spring是什么?

Factually and concisely, what are the disadvantages that are faced by developers on adoption of Spring boot as the de facto Spring go to?

Spring Boot的优点问题显示了我同意的优点,但我认为应该有更圆润的观点。

The advantages of Spring Boot question shows advantages of which I agree there are many, but believe there should be a rounder view.

基于非意见的观点是:


  • 春天使用未使用的依赖项可能会不必要地增加部署二进制文件大小。

  • Spring boot may unnecessarily increase the deployment binary size with unused dependencies.

无法轻松自定义日志记录,如图所示这里

Not being able to customize logging easily as shown here.

推荐答案

这是一个非常基于意见的问题,但我相信你可能遇到的最大的缺点是使用它或Spring,而不了解它给你的价值或者你的项目。它可能完全不符合您的要求,您可能会在某些时候自行配置所有内容。

This is a very opinion based question but I believe that the biggest disadvantage that you might encounter is using it or Spring at all without understanding what value it gave to you or your project. It might be completely not aligned with your requirements and it is possible that you will configure everything by yourself at some point.

让我评论您喜欢的项目符号< a href =https://stackoverflow.com/questions/28831479/advantage-of-spring-boot>问题。

Let me comment bullet points that you liked in the question.


  • 创建独立的Spring应用程序=>您可以创建独立的Java应用程序吗?为什么选择Spring?

  • 直接嵌入Tomcat,Jetty或Undertow(无需部署WAR文件)=>如果你必须建立战争怎么办?小配置可以解决这个问题,但它没有任何主要优势。

  • 提供自以为是的启动POM以简化您的Maven配置=>如果您有许多传统弹簧模块怎么办?如果你需要补丁怎么办?

  • 尽可能自动配置Spring =>如果这个配置完全不符合你的要求怎么办?

  • 提供生产就绪功能,例如指标,运行状况检查和外部化配置=>这对您来说足够了吗?这是完全错误的,因为你需要更复杂的东西吗?没用,因为你根本不需要这个?

  • Create stand-alone Spring applications => You can create standalone java application? Why Spring at the first place?
  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files) => What if you have to build war anyway? Little config will do the trick but it's not any major advantage.
  • Provide opinionated 'starter' POMs to simplify your Maven configuration => What if you have many legacy spring modules? What if you need to patch it up?
  • Automatically configure Spring whenever possible => What if this configuration is completely not aligned with your requirements?
  • Provide production-ready features such as metrics, health checks, and externalized configuration => Is it sufficient for you? Is it completely wrong, as you need something more sophisticated? Useless, as you don't need this at all?

这篇关于Spring Boot for Java Web应用程序有哪些缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆