Home Database Mysql Tutorial 基于S2SH框架的项目—详细搭建步骤

基于S2SH框架的项目—详细搭建步骤

Jun 07, 2016 pm 03:19 PM
w based on build New frame step detailed project

1、新建一个WebProject,如下图: 2、添加Struts2框架 右击刚才创建的HelloS2SH项目,选择MyEclipse add Struts2 Capabilities...,如下图: 然后紧接着出现一个对话框,我们这里选择Struts2.1和/* ,如下图: 点击next,出现如下的界面: 最后点击finish,s

1、新建一个WebProject,如下图:

基于S2SH框架的项目—详细搭建步骤

 

2、添加Struts2框架

      右击刚才创建的HelloS2SH项目,选择MyEclipse > add Struts2 Capabilities...,如下图:

基于S2SH框架的项目—详细搭建步骤

 

然后紧接着出现一个对话框,我们这里选择Struts2.1和/*  ,如下图:

基于S2SH框架的项目—详细搭建步骤

点击next,出现如下的界面:

基于S2SH框架的项目—详细搭建步骤

最后点击finish,strust2框架添加成功

3、添加Spring框架

      右击刚才创建的HelloS2SH项目,选择MyEclipse > add Spring Capabilities...,如下图:

基于S2SH框架的项目—详细搭建步骤

然后紧接着出现一个对话框,我们这里选择Spring 3.0,如下图:

基于S2SH框架的项目—详细搭建步骤

点击next,出现如下的对话框:

基于S2SH框架的项目—详细搭建步骤

最后Spring框架添加成功

 

4、添加Hibernate框架

右击刚才创建的HelloS2SH项目,选择MyEclipse > add Hibernate Capabilities...,如下图:

基于S2SH框架的项目—详细搭建步骤

 

然后出现如下的对话框:

基于S2SH框架的项目—详细搭建步骤

然后点击Next,出现如下对话框,选择第二个Spring config......:

基于S2SH框架的项目—详细搭建步骤

然后点击Next,选择第二个Existing Spring ......:

基于S2SH框架的项目—详细搭建步骤

点击Next,在DB Driver选择一个数据源:

基于S2SH框架的项目—详细搭建步骤

点击Next,取消勾选 Create Session......

基于S2SH框架的项目—详细搭建步骤

最后点击Finish完成Hibernate框架的添加

 

完成如上几个步骤,S2SH框架基本上就搭建完成,希望你搭建愉快哦~~

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

This Apple ID is not yet in use in the iTunes Store: Fix This Apple ID is not yet in use in the iTunes Store: Fix Jun 10, 2024 pm 05:42 PM

This Apple ID is not yet in use in the iTunes Store: Fix

Shazam app not working in iPhone: Fix Shazam app not working in iPhone: Fix Jun 08, 2024 pm 12:36 PM

Shazam app not working in iPhone: Fix

Clear gray Safari history in iPhone: Fixes Clear gray Safari history in iPhone: Fixes Jun 08, 2024 pm 06:44 PM

Clear gray Safari history in iPhone: Fixes

iPhone stuck in airplane mode: How to fix it iPhone stuck in airplane mode: How to fix it Jun 15, 2024 pm 02:16 PM

iPhone stuck in airplane mode: How to fix it

How to evaluate the cost-effectiveness of commercial support for Java frameworks How to evaluate the cost-effectiveness of commercial support for Java frameworks Jun 05, 2024 pm 05:25 PM

How to evaluate the cost-effectiveness of commercial support for Java frameworks

How do the lightweight options of PHP frameworks affect application performance? How do the lightweight options of PHP frameworks affect application performance? Jun 06, 2024 am 10:53 AM

How do the lightweight options of PHP frameworks affect application performance?

iPhone camera flickers/flickers in room lights: fix iPhone camera flickers/flickers in room lights: fix Jun 06, 2024 pm 02:28 PM

iPhone camera flickers/flickers in room lights: fix

How to choose the best golang framework for different application scenarios How to choose the best golang framework for different application scenarios Jun 05, 2024 pm 04:05 PM

How to choose the best golang framework for different application scenarios

See all articles