Using MyEclipse to build the SSH framework Struts Spring Hibernate

Source: Internet
Author: User

1. New a Web project.
2. Right-click the project to add struts support for the project.


Click Finish. The SRC directory has more struts.xml configuration files.

3, use MyEclipse Database Explorer to establish a data source.

new a data source. Fill in the data source information.
Click Test Driver, if successful display:
Click OK, click Finish.

4, add spring support for the project. The
selects five packages, after which the jar Library installation as.
Click Next.

Click Finish by default.

5, add hibernate support for the project.


default package, change jar Library installation.

click Next.


Choose whether to establish Hibernate's own profile or merge it into the spring configuration file. Select Merge, change the point check box, and click Next.
Select existing Spring configration File and click Next. The
selects the data source we just created. Click Next.

Remove the check box tick and click Finish.

6, publish the project, you can now access the project's JSP page.

7, follow-up work.

Add spring configuration and monitoring to Web. Xml as follows.

<!--spring configuration and monitoring start-
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/application*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-end--

8, the end.

Using MyEclipse to build the SSH framework Struts Spring Hibernate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.