Spring vs Jboss [英] Spring vs Jboss

查看:23
本文介绍了Spring vs Jboss的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring 与 Jboss 对于企业 Web 应用程序的优缺点是什么.

What are the advantages and disadvantages for Spring vs. Jboss for an enterprise web application.

推荐答案

正如已经说过的,但让我重申一下.JBoss 是一个应用服务器.一些 Java 应用服务器包括

As already said, but let me just restate the point. JBoss is an application server. Some Java application servers include

  • 网络领域
  • 玻璃鱼
  • JBoss

Spring 是一个框架.一个相当大的框架,它提供了很多,但对我来说,主要功能之一是 MVC.MVC 是一种设计模式,您可以将模型与视图与控制器分开.模型是数据的表示.这可以由数据库或 XML 文件之类的东西支持.视图是用来查看模型的.这可以是 Web 前端或 Windows 应用程序.用户将与视图交互.用户将表达他们希望更新模型.这就是控制器的用武之地.我们使用控制器来告诉模型更新.因为视图是基于模型的,所以视图也会更新.这过于简化,但简而言之.您可以查看的其他 MVC 框架是 Struts.

Spring is a framework. A rather large framework which offers quite a bit but for me one of the main features is MVC. MVC is a design pattern where you separate your Model from View from your Contoller. The model is the representation of the data. This can be backed by things like database or XML files. The view is what is used to view the model. This can be either web frontend or a windows application. The user will interact with the view. The user will express their desire for the model to be updated. This is where the controller comes in. We use the contoller to tell the model to update. And because the view is based on the model the view then gets updated too. This is over simplifying but in a nutshell. Other MVC framework that you can look at is Struts.

就像我之前所说的,Spring 还提供了其他功能,例如

Like I said earlier there are other features that Spring offers such as

  • 安全框架
  • 控制反转
  • 依赖注入

这篇关于Spring vs Jboss的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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