Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Architecture & Framework
» Spring Framework
打印话题 寄给朋友 订阅主题 |
作者 | 关于jpetstore源码中看到的domain,service的问题.. |
momocha
发贴: 98 积分: 10 |
于 2005-11-23 13:40
我看原码分成了四个目录dao,web,domain,service四个目录,前两个很容易明白,但domain,service这两上的划分依据和想法不太明白.特别是domain里边的类比较杂乱. |
作者 | Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha] |
yeafee
javaholder 发贴: 42 积分: 1 |
于 2005-11-23 16:55
期待有谁能能够给出清楚的说明!!! momocha,你看的是Spring作的web tier还是struts作的web tier呢?能否把你看的过程写出来供大家学习呢。正在看Spring的,只是遇到不少困难呀..希望自己能赶快把它整理出来。 看Spring附带jpetstore(Spring as web tier)登入过程,请指点 http://www.cjsdn.net/post/view?bid=20&id=163530&sty=1
yeafee edited on 2005-11-23 17:01
三人行,必有我师焉 敏而好学,不耻三问 学而时习之,不思则罔 .......... |
作者 | Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha] |
momocha
发贴: 98 积分: 10 |
于 2005-11-25 19:36
谢谢floater,我还是不太明白加一层Spring究竟有啥些作用,对象之间的解藕,也就是对象之间的依整由配置文件注入,还有事务管理(这个具体的是指些什么内容),能不能说明一下! |
作者 | Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha] |
momocha
发贴: 98 积分: 10 |
于 2005-11-25 21:38
还有一个问题,这个Demo(iBatis的也一样)不支持汉字,我加过滤器还有改每个jsp页面的编码都不行..不知道为啥.. |
作者 | Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha] |
momocha
发贴: 98 积分: 10 |
于 2005-11-29 11:27
好多文档都提到那本<<j2ee设计开发指南>>这本书还值得看一看吗,还是直接看最新的那本without ejb就可以了.. |
作者 | Re:关于jpetstore源码中看到的domain,service的问题.. [Re:momocha] |
floater
Java Jedi 总版主 发贴: 3233 积分: 421 |
于 2005-11-29 11:52
That's still one of the best books I've ever read. It also helps a lot for reading Rod's other books because it's a more comprehensive book than others, it covers a lot of practical consideration, not too simplified to a meaningless case. The other books are more of solution books, given the problems, esp ejbs in 90% cases are not appropriate. This is my original comment back in 2003: http://www.cjsdn.net/post/view?bid=20&id=30105&tpg=1&ppg=1&sty=1&age=0#30105
floater edited on 2005-11-29 12:03
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code |
已读帖子 新的帖子 被删除的帖子 |
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 |