How to get rid of struts2-hibernate-spring frame in MyEclipse

Source: Internet
Author: User

MyEclipse joining the struts2,hibernate,spring framework is easy, but sometimes not appropriate when you need to remove certain frames from the online collection of finishing steps as follows:

First, undo MyEclipse support for Struts

The key steps are two, one is to delete the Struts-config.xml file, and the other is to modify the. project file.

The first step does not need to repeat, in the left navigation bar to find the file delete, I believe that the deployment of struts can be done by everyone. Deleting the config file is the primary, otherwise myeclipse will be paralyzed when you redeploy struts. Other struts-related files that are automatically generated by MyEclipse can be ignored, and when re-deployed, they will be automatically overwritten if they have duplicate names. Simply deleting the config file does not allow struts to re-appear in the MyEclipse menu, we need to take the second step.

The second step is to say in detail:. Project files cannot be seen directly in the MyEclipse, go to your project folder, open the. project file with Notepad, delete the node with struts in the--natures tag

"<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>"

This sentence, deleted after saving exit. At this point the main operation has been completed, MyEclipse submenu still does not appear in the Add Struts option, we re-refresh the project, let the new. Project file takes effect: In the left-hand directory, right-click the project and select Refresh. The struts feature can be tried again, and then the Struts function is re-deployed.

Ii. withdrawal of MyEclipse support for hibernate

I have added support for hibernate through the menu Myeclipse->project capabilities, add easy, delete difficult, the menu does not seem to remove the features of hibernate support, can only be manually deleted:

1. Put the project root directory under file. Myhibernatedata Delete
2. Modify the files in the project root directory. Project: Delete Two of these sections:

<buildCommand>                   <name> com.genuitec.eclipse.hibernate.HibernateBuilder     </name>               &L T;arguments>                </arguments>        

3. Delete hibernate corresponding to the mapping file, class this completely removed the support for hibernate, for the removal of other support the same way.

Iii. withdrawal of myeclipse support for spring

1. Remove the spring libs from the build path
2. Manually modify the relevant content in the. project file in the project catalog (that is, the related Nature,buildcomman)
3. Delete the. springbean file Refresh project under the project catalog, and in the Project right-click menu MyEclipse Add spring Capacity and it's back.

Transfer from http://blog.csdn.net/shenzhennba/article/details/20851485

How to get rid of struts2-hibernate-spring frame in MyEclipse

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.