{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

轻量级Java Web整合开发入门:Struts2+Hibernate4+Spring3

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

轻量级Java Web整合开发入门:Struts2+Hibernate4+Spring3

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

SSH(Struts、Spring 、Hibernate) 框架是目前Java Web 开发中应用非常广泛的开源框架组合,基于SSH 框架,开发人员可以在短期内搭建结构清晰、可复用性好、维护方便的Java Web 应用程序。
《轻量级Java Web整合开发入门:Struts2+Hibernate4+Spring3》详细讲解了Struts 2、Hibernate 和Spring 的基本用法,及其相互之间的整合流程,可以作为初学者学习Java EE 整合开发的入门教程。全书共7 章,可分为3 部分:第1~2 章是第1 部分,介绍了Java EE 开发的基础知识以及一些常见的设计模式;第3~5 章是第2 部分,详细介绍了Struts 2 框架、Hibernate 框架和Spring 框架的概念及基本使用方法,该部分内容是本书的核心;第6~7 章是第3 部分,主要介绍SSH 框架的整合流程,该部分是作者多年使用SSH 框架整合过程的经验总结,以及对一些典型整合中可能遇到问题的归纳总结,希望读者在整合的过程中,少走弯路,提高效率。
本书介绍的Struts 框架的版本为Struts 2.3.16,Hibernate 框架的版本为Hibernate 4.2.0,Spring 框架的版本为Spring 3.0。因为不同版本相互整合时可能会存在一些兼容性问题,所以若以本书作为学习Java EE 框架的教程,或是运行本教程附带源代码时,选择和本书一样的版本。
本书语言简洁,内容丰富,既可作为SSH 框架初学者的入门教材,也可作为高等院校相关专业的教材和辅导用书。
Catalogue

第1章 轻量级Java Web开发概述 1
1.1 Java概述 1
1.2 Java Web开发概述 2
1.2.1 Java Web项目基本结构 2
1.2.2 轻量级Java Web开发概述 7
1.2.3 经典Java Web开发概述 7
1.3 常用的Java Web服务器 7
1.4 轻量级Java Web开发环境 9
1.4.1 环境变量的配置 9
1.4.2 常用的集成开发环境 10
1.5 轻量级Java Web开发相关技术 11
1.5.1 JSP简介 12
1.5.2 数据库技术简介 13
1.5.3 配置文件的格式 13
1.5.4 其他相关软件 15
1.6 Java Web项目的部署 15
1.6.1 拷贝部署法 15
1.6.2 WAR包部署法 16
1.6.3 IDE部署法 17
1.7 学习轻量级Java Web开发的方法 18
1.8 本章小结 18
1.9 习题 18
1.10 实验 19
第2章 设计模式概述 21
2.1 单例模式 22
2.2 工厂模式 23
2.2.1 简单工厂模式 23
2.2.2 工厂方法模式 27
2.2.3 抽象工厂模式 29
2.3 代理模式 31
2.4 命令模式 33
2.5 策略模式 36
2.6 MVC 38
2.7 本章小结 40
2.8 习题 41
2.9 实验 42
第3章 Struts 2框架 43
3.1 Struts 2框架概述 43
3.1.1 Struts 2框架的由来 43
3.1.2 Struts 2框架的下载和安装 44
3.1.3 Struts 2框架的体系结构图 45
3.2 Struts 2框架的基本用法 46
3.2.1 使用Struts 2框架的开发步骤 47
3.2.2 Struts 2框架的Action接口 48
3.2.3 Struts 2框架的配置文件 49
3.2.4 完整的Struts 2框架应用实例 50
3.3 Struts 2框架的标签库 57
3.3.1 Struts 2标签库和JSP标签库的
区别 57
3.3.2 常用的Struts 2标签介绍 58
3.3.3 Struts 2框架的国际化支持 59
3.3.4 用户注册的实例 64
3.4 Struts 2框架的高级应用 66
3.4.1 Struts 2的类型转换 66
3.4.2 Struts 2的输入校验 72
3.4.3 Struts 2的文件上传与下载 76
3.4.4 Struts 2的拦截器 83
3.5 本章小结 90
3.6 习题 91
3.7 实验 92
第4章 Hibernate框架 93
4.1 Hibernate框架概述 93
4.1.1 ORM的概念 93
4.1.2 常用的ORM框架 94
4.1.3 JPA的概念 94
4.1.4 Hibernate的下载和安装 95
4.1.5 Hibernate框架的结构图 96
4.2 Hibernate框架的基本用法 98
4.2.1 使用Hibernate框架的流程 98
4.2.2 Hibernate框架的核心类 110
4.2.3 持久化类的概念 112
4.2.4 Hibernate框架的配置文件 114
4.2.5 Hibernate框架的映射文件 116
4.2.6 使用Hibernate进行增删改查 118
4.3 Hibernate框架的高级应用 124
4.3.1 Hibernate框架的关联映射 124
4.3.2 Hibernate框架的查询 138
4.3.3 Hibernate的批量处理 146
4.4 本章小结 149
4.5 习题 149
4.6 实验 150
第5章 Spring框架 151
5.1 Spring框架概述 151
5.1.1 Spring框架简介 152
5.1.2 Spring框架的下载和安装 153
5.1.3 Spring框架的结构图 154
5.1.4 使用Spring框架的好处 156
5.2 Spring框架的基本用法 157
5.2.1 使用Spring框架的流程 157
5.2.2 Spring框架的使用范围 158
5.2.3 Spring框架的依赖注入 159
5.2.4 Spring框架的配置文件 164
5.3 Spring框架的高级应用 165
5.3.1 Spring的后处理器 165
5.3.2 Spring的资源访问 168
5.3.3 Spring的AOP 171
5.3.4 使用AOP进行权限验证及
日志记录 172
5.4 Java的反射和代理 176
5.4.1 Java的反射 176
5.4.2 Java的代理 181
5.5 本章小结 186
5.6 习题 186
5.7 实验 187
第6章 轻量级整合开发实例 189
6.1 整合开发概述 189
6.1.1 为什么要整合开发 189
6.1.2 常用的轻量级整合开发 189
6.2 Struts和Hibernate的整合开发 190
6.2.1 整合开发步骤 190
6.2.2 整合开发实例 190
6.3 Struts、Hibernate及Spring的整合开发 202
6.3.1 整合开发步骤 203
6.3.2 整合开发实例 203
6.3.3 整合开发注意事项 205
6.4 SSH整合开发实例:权限管理
系统 206
6.4.1 项目概述 206
6.4.2 项目详细创建过程 207
6.4.3 项目小结 221
6.5 轻量级整合和经典整合的区别 221
6.6 本章小结 221
6.7 习题 221
6.8 实验 222
第7章 Java Web开发常见问题 223
7.1 Struts 2框架常见问题 223
7.1.1 核心过滤器的配置 223
7.1.2 Web页面中文乱码问题 224
7.2 Hibernate框架常见问题 224
7.2.1 MySql服务不能启动 224
7.2.2 MySql数据库乱码问题 225

7.2.3 1-N双向关联映射统一外键问题 226
7.2.4 Hibernate 3和Hibernate 4二级缓存的配置区别 226
7.2.5 Hibernate生成表的默认名称对Linux和Windows的区别 227
7.2.6 Linux和Windows对路径表示方式的区别 228
7.3 Spring框架常见问题 228
7.4 一切问题的根源 228
Introduction

由于Java语言的跨平台性以及Web应用的广泛发展,Java EE平台已经成为各大行业应用的首选开发平台。Java EE开发可分为两种模式:一种是以Spring为核心的轻量级Java EE企业开发;另一种是以EJB3+JPA为核心的经典Java EE开发。无论使用哪种平台进行开发,应用的性能及稳定性都有很好的保证,开发人群也较多。近年来,随着开源力量的迅速增长,使用轻量级Java EE开发的人数和市场占有率基本上已经超过了经典Java EE开发,有后来居上之势。
本书的主要内容就是介绍轻量级Java EE开发的相关框架,主要包括Struts 2、Hibernate和Sping框架,以及这3个框架的整合流程,也称SSH整合开发。这种整合开发模式在保留经典Java EE应用架构、高度可扩展性、高度可维护性的基础上,降低了Java EE应用的开发和部署成本,对于大部分的中小型企业应用是首选。
目前市面上讲述SSH框架的书籍不少,但是有一个缺点就是内容过多,大多是七八百页的大部头书籍,让初学者望而生畏。编者从事Java EE开发已经超过5年,深感对于框架初学者来说,并不是需要一本把所有的知识点都全部包含,把所有相关内容都讲到的书籍,而是需要一本能引导他们掌握框架的基本知识和基本使用流程的书籍。有过开发经验的人都知道,要想非常透彻和深刻地理解框架,没有几个实际项目的锻炼是不可能的。鉴于此,本书不求大而全,但求基础和实用。本书具有以下特点:
以精炼的语言,讲述SSH框架的基础知识;
完整实例介绍+经验总结+详细操作步骤;
所讲内容不仅仅是SSH框架,也涉及Java领域常用的其他框架,如经典Java EE框架等;
?使学生不仅掌握SSH框架,更要明白框架的原理,并能对Java开发常见的框架有一定的了解和认识。
从2010年开始教授SSH框架课程至今,从对框架的肤浅认识,到对框架的熟练掌握,再到能掌握其基本原理。一路过来,走了不少弯路。也深深地体会到,教会学生学习的方法比掌握知识更重要。谨以此书,把个人学习和教授框架的经验,与广大初学者分享,希望能帮助大家在框架学习的道路上少走弯路。
本书共7章,可以分为3部分。
第1部分(第1章和第2章),Java EE开发的基础知识。其中,第1章主要介绍Java EE开发的基础知识,以及经典Java EE开发和轻量级Java EE开发的概念以及区别;第2章主要介绍一些常见的设计模式。实际上,框架的实现就是一系列设计模式的应用(如Struts 2框架就体现了MVC模式的思想,Spring框架从整体来说实际是工厂模式的思想),掌握了设计模式的原理,就能对框架的底层实现有更深刻的理解。
第2部分(第3~5章),SSH框架介绍。该部分内容是本书的核心。第3章主要介绍Struts 2框架的概念、下载方法、标签库以及一些高级应用;第4章主要介绍Hibernate框架相关的概念、基本用法以及高级应用;第5章主要介绍Spring框架的概念、基本用法以及高级应用。学习完这3个章节的内容后,可以分别掌握Struts 2框架、Hibernate框架和Spring框架的的基本使用流程。但是该部分介绍的框架是相互独立的,若要掌握框架整合的知识,还需学习第3部分。
第3部分(第6章和第7章),SSH框架的整合流程。该部分是作者多年使用SSH框架整合过程的经验总结,以及对一些典型整合中可能遇到问题的归纳总结,希望读者在整合的过程中,提高效率,少走弯路。其中,第6章主要介绍SSH框架相互整合的流程,以及轻量级整合和经典整合的区别;第7章主要总结了一些Java Web开发中常见的问题,以及相应的解决方案。学习就是不断遇到问题,然后在解决问题的过程中不断提高的过程。
学习框架,要先学会使用,在此基础之上再深入了解其原理,理解其思想。编程时使用框架和盖房子使用框架是一个道理。修一个小房子不需要框架,甚至可以边修边设计,但是要盖高楼大厦,则必须要使用框架。对于写程序也是一样的道理,小程序使用框架有点“杀鸡用牛刀”的感觉,也没有必要。程序规模到一定程度后,为了程序的协同开发及后期的软件扩展和维护,则必须使用框架。或者可以这么说,使用框架就相当于站在了巨人的肩膀上,用得好,可以达到事半功倍的效果。
本书由段鹏松、李占波主编。段鹏松负责制定编写大纲、规划各章节内容,并完成全书统稿以及代码调试工作。其中,段鹏松主编第1、5、6、7章,张晗主编第2章,曹仰杰主编第3章,宋冰主编第4章。此外,参与本书资料搜集和整理的还有史晓东、徐鹏飞、袁振风等人,在此,编者对他们表示衷心感谢。
由于时间仓促,加之编者水平有限,书中难免存在疏漏和不足之处,恳请读者批评、指正。
编 者
2015年5月

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book