Topic: Struts+Spring+Hibernate |
Print this page |
1.Struts+Spring+Hibernate | Copy to clipboard |
Posted by: hncszy Posted on: 2004-08-04 15:09 http://www.onjava.com/pub/a/onjava/2004/04/07/wiringwebapps.html 听说老美干活大多用“struts+spring+hibernate”这种架构…… Overview of framework architecture with Struts, Spring, and Hibernate. |
2.Re:Struts+Spring+Hibernate [Re: hncszy] | Copy to clipboard |
Posted by: haibo Posted on: 2004-08-04 15:43 看起来好像是个很好的轻量架构,struts不用说了1.1很稳定,hibernate2.1也不错,就是spring不知道release的版本是否稳定,而且又缺少对spring框架系统全面介绍的书籍出现,对于项目方案选择有很大风险 |
3.Re:Struts+Spring+Hibernate [Re: haibo] | Copy to clipboard |
Posted by: Kaninchen Posted on: 2004-08-04 19:52 不知道这本书怎么样? http://www.sourcebeat.com/TitleAction.do?id=7 - |
4.Re:Struts+Spring+Hibernate [Re: hncszy] | Copy to clipboard |
Posted by: floater Posted on: 2004-08-04 22:22 The first one, I think, has a chinese translation. I read it on the train with a colleague. He got lost with the chinese version and went back to english version. 听说老美干活大多用“struts+spring+hibernate”这种架构 - From my exp, not really. Financial industry can't use hibernate since it can't integrate stored procedures(unless you do the dirty work). iBATIS is more realistic for us. Struts seems in favor for new new J2EE developers with 1-2 year experience, but not for some of us. Even if Struts has more shares, I just don't see the logic why it's better than Spring. Spring is fairly new, and not easy for new comers. Spring live: the author is nice, but I am not sure about the book(means I have more weight on the negative side), since it sounds like it cares more about integration with others, rather than what haibo wants - the framework itself. Spring is pretty stable. I trust this because you could read Rod's logic from his book. A person writting a book like that, just can't do anything to sink the ship. I bet my shoes once you are on this ship, you won't go off(well, unless you gf asks you to get off). The risk is smaller than Struts in terms of unpredictable changes. If you have questions on Spring, just throw in here. I might not be able to answer all of them(which is Rod's job), but at least we could discuss them. |
5.Re:Struts+Spring+Hibernate [Re: floater] | Copy to clipboard |
Posted by: wes109 Posted on: 2004-08-06 11:04 floater wrote: 真是说到点子上了,我们还是需要多一些自主的冷静的思考,不要盲目跟什么"潮流",尤其是没有真正看清楚潮流背后的东西之前 floater wrote: 看了大虾的A tutorial for Spring Web (Spring Web Framework.PDF)收益颇多,但还没有真正吸收其精髓,对于构建一个大的WEB层还是没有什么概念,可能因为偶还是一个 new new J2EE developers 不过我觉得使用Spring Web可以更好的和Spring的其它部分沟通。。。 floater wrote: Rod的书非常好,看得非常过瘾。。。。昨晚上又看到2点, hoho ~~~~ floater wrote: Best thanks for you............... |
6.Re:Struts+Spring+Hibernate [Re: haibo] | Copy to clipboard |
Posted by: wes109 Posted on: 2004-08-06 12:21 haibo wrote: 以前我也有这方面的担心。。。 但对Spirng Framework有了更深入的了解之后,这种担心更多的变成了信心。 我觉得Spring真正的卖点并不是什么Ioc、什么aop,这些只是它实现的基础,更多的是它对现有技术的封装、整合和增强, jdbc、orm、transaction management 、web、web MVC等。就像一个武器库,十八般兵器,样样俱全。。。 Spirng在设计上非常强调简单性和一致性,简约的配置文件风格,各个组件的实现一致性,小到包名、类名等命名都体现一种统一的风格。Rod特别强调了命名,还有注释,不知道为什么那么多人喜欢吹嘘“自解释”,说什么我的方法,我的命名都是“自解释”的,说什么文档不重要,说什么我崇尚敏捷,我喜欢简单。。。我看你是弱智!整个一傻大帽,没有认识到文档的重要性,等于没有学好编程! 撤得远了 对Spring还是很有信心的,希望更深入了解后能多做一些实际的东东。 引用“多隆”(就不用我具体说是谁了吧?hoho~~~)的一句话: 高手,是练出来di |
7.Re:Struts+Spring+Hibernate [Re: wes109] | Copy to clipboard |
Posted by: haibo Posted on: 2004-08-06 13:14 wes109 wrote: 记得Gof在《design pattern》中说过在编写类,库,框架三者之中,框架是最难的,框架是一种更高层次的重用,因此设计要求很高。对框架的精妙设计的理解在于对没有框架的情况下,你能做什么,不能做什么,做什么很麻烦的理解深度有多深。。。 |
8.Re:Struts+Spring+Hibernate [Re: haibo] | Copy to clipboard |
Posted by: wes109 Posted on: 2004-08-06 17:11 haibo wrote: 真是说曹操,曹操就到呀! 真敏捷人士也 不只所云呀!你在说framework难做,对我们有什么帮助?跑题了吧? 偶现在还在学习研究阶段,等理解得更深入些了再说吧,就不妄言了。。。 |
9.Re:Struts+Spring+Hibernate [Re: hncszy] | Copy to clipboard |
Posted by: floater Posted on: 2004-08-07 03:00 yes, yes, I agree wholeheartly on this one:
I mean, taking a fresh look is perfectly fine, but once we get into details, it would be better to understand the logic so we could use it properly. I think the best piece in Spring is its flexibility. In order to do this, you've got to have a lot of experience and the ability to see through the superficial behaviors to get to the essence. For example, in Spring web, the key abstraction is the Controller interface. Although it has one method, it's everything that java web interface/servlet is about. The entire Spring web is built on top of that. A good abstraction. The invariants/variants are everywhere in Spring, try to identify them because it helps us to understand the logic. My boss is on my neck now, so I can't spare time to come up a doc for db/orm. Not sure whether folks in here are willing come up a team to practice and write up a doc for db/orm, it will benefit everyone. |
10.Re:Struts+Spring+Hibernate [Re: floater] | Copy to clipboard |
Posted by: hncszy Posted on: 2004-08-07 10:07 多谢floater鞭辟入里的分析,获益匪浅。同时也感谢haibo、wes109的谈论。 floater wrote: 我们期待floater给大家来the doc for db/orm, it will benefit everyone here. |
11.Re:Struts+Spring+Hibernate [Re: hncszy] | Copy to clipboard |
Posted by: realwangx Posted on: 2004-09-24 11:11 hncszy wrote: 能不能够把整合struts+spring+hibernate三者的配置方法讲一讲,可能是小儿科的问题,见笑了。 |
12.Re:Struts+Spring+Hibernate [Re: realwangx] | Copy to clipboard |
Posted by: hncszy Posted on: 2004-09-25 00:31 realwangx wrote: 建议找一些eclipse和ant方面的书,然后研究http://www.onjava.com/pub/a/onjava/2004/04/07/wiringwebapps.html 及它提供的例子。要是你再有兴趣的话,建议看看关于JSF方面的资料! p.s.http://www.cjsdn.net/post/view?bid=20&id=105259&sty=1&tpg=5&age=0 这个是关于jsf+spring+hibernate的! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |