教程解释Struts 2,Spring和Hibernate的集成 [英] Tutorial to explain Struts 2, Spring, and Hibernate integration

查看:84
本文介绍了教程解释Struts 2,Spring和Hibernate的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了工作,我被要求创建一个相当基础的web应用程序。数据库顶端的前端gui,用于存储通过表单输入的数据。我的问题是,我不是一个Web开发人员,更多的是后端开发人员,所以我没有太多关于Struts或其他任何东西的经验。所以我一直在做很多研究,我想我会用Hibernate创建一个通用的Struts 2应用程序。在使用Spring的时候,Hibernate看起来也很容易。



无论如何,我的问题是我通过示例学习得最好,因为我可能没有找到一个非常好的教程或使用基本Struts应用程序的示例Spring和Hibernate。我已经阅读了我所能找到的所有内容,到目前为止,他们似乎都留下了一些东西,或者只是假设我知道我不知道的东西,或者他们太过时了。所以我想我问的是,如果有人能够指示我创建一个完整的Struts,Spring和Hibernate应用程序的示例应用程序。我已阅读了Struts网站上的教程,并尝试了解Spring上的文档和Hibernate网站,但我只需要一些东西,通过一个例子,从头到尾都有一些体面的解释。如果有人有一些想法,请让我知道。谢谢。



我通过这里搜索并阅读了一些我发现的建议,但仍然没有找到。

解决方案


所以我想问我是否有人可以指点我一个例子
app创建一个完整的Struts,Spring和Hibernate应用程序。


您可以尝试使用 AppFuse 2 来使用Struts 2,Hibernate和Spring生成一个Web应用程序。它包含一个简单的Web表单,用于创建用户帐户并将其保存到数据库。以下是生成的Web应用程序的演示网站。使用 admin / admin 以管理员身份登录,用户/用户以普通用户身份登录。 http://maven.apache.org/rel =nofollow> Maven ,因为AppFuse 2使用它来为Web应用程序生成源代码,并且生成的应用程序使用它作为构建工具。 p>

For work I've been asked to create a web application that will be fairly basic. A front end gui on top of a database that stores data entered in through forms. My problem is that I'm not a web developer, more a back end developer, so I don't have much experience with Struts or anything else. So I've been doing a lot of research and I guess I'm going to just create a generic Struts 2 app using Hibernate. It also seems like Hibernate is made easy when using Spring.

Anyway, my problem is that I learn best through example and try as I might I haven't found a really good tutorial or example of a basic Struts app that makes use of Spring and Hibernate. I've read just about all of them out there I can find and so far they all seem to leave something out, or just assume I know something that I don't, or they're too outdated. So I guess I'm asking if someone can perhaps point me to an example app that creates a full Struts, Spring, and Hibernate app.I've read the tutorials on the Struts websites, and attempted to get through the documentation on the Spring and Hibernate sites but I just need something that walks me through an example with some decent explanations from beginning to end. If anyone has some thoughts please let me know. Thank you.

And I did search through here and read a number of suggestions I've found but still nothing that I'm looking for.

解决方案

So I guess I'm asking if someone can perhaps point me to an example app that creates a full Struts, Spring, and Hibernate app.

You can try to use AppFuse 2 to generate a web application using Struts 2 , Hibernate and Spring . It contains a simple web form that creates an user account and save it to the DB. Here is the demo site for the generated web application .Use admin/admin to login as an administrator , user/user to login as a normal user.

You should probably have to know Maven too as AppFuse 2 uses it to generate the source code for the web application and the generated application uses it as the build tool.

这篇关于教程解释Struts 2,Spring和Hibernate的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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