春天对Jboss [英] Spring vs Jboss

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

问题描述

对于企业Web应用程序,Spring和Jboss有什么优点和缺点。

解决方案

让我重申一下。 JBoss是一个应用程序服务器。一些Java应用程序服务器包括




  • Websphere

  • Glassfish

  • JBoss



Spring是一个框架。一个相当大的框架,它提供了相当多的但是对我来说主要的功能之一是MVC。 MVC是一种设计模式,你从你的Contoller中分离你的模型和视图。模型是数据的表示。这可以由类似数据库或XML文件的东西支持。视图是用于查看模型的。这可以是Web前端或Windows应用程序。用户将与视图交互。用户将表达他们对要更新的模型的期望。这是控制器进来的地方。我们使用contoller告诉模型更新。并且因为视图是基于模型的视图,然后得到更新。这是简单的,但简而言之。你可以看看的其他MVC框架是Struts。



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




  • 安全框架

  • 控制反转

  • 依赖注入


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

      解决方案

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

      • Websphere
      • Glassfish
      • JBoss

      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.

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

      • Security framework
      • Inversion Of Control
      • Dependency Injection

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

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