可以使用Spring MVC在Swing应用程序中实现MVC模式吗? [英] Can Spring MVC be used to implement MVC pattern in Swing applications?

查看:514
本文介绍了可以使用Spring MVC在Swing应用程序中实现MVC模式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用 Spring MVC Java Swing 应用程序中实现MVC模式。我做了一些研究,发现Spring MVC用于Web开发。

I was wondering if Spring MVC can be used to implement MVC pattern in Java Swing Applications. I've done some study and found Spring MVC to be used for web development.

有没有什么方法可以将Spring MVC与Swing Applications一起使用?

Is there any way Spring MVC to be used with Swing Applications?

推荐答案

不是真的。如你所说,Spring MVC(或 Spring Web MVC )是Web服务器开发的主要目标,因此与客户端或独立GUI应用程序几乎没有关系。

Not really. As you say, Spring MVC (or Spring Web MVC) is primary targeted for web server development and thus have little to do with client side or standalone GUI applications.

也就是说,没有什么可以阻止你使用普通的Spring技术进行依赖注入,作为模型中的后端等等.Spring提供持久性,远程网络通信,事务的抽象,安全性等在许多项目中可能会派上用场。

That said, nothing prevents you from using ordinary Spring technologies for dependency injection, as a backend in your model, etc. Spring provides abstractions for persistence, remote network communication, transactions, security and so on that might come in handy in many projects.

此外,还有 Spring Rich几年前发布的客户项目,但我不知道它目前的状态。

Additionally, there is the Spring Rich Client Project that was released some years ago, but I do not know its current status.

这篇关于可以使用Spring MVC在Swing应用程序中实现MVC模式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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