In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Search a lot of ssh323 configuration articles on the Internet, but some development environment is different, the version is also different, the following is my ssh323 development configuration tutorial, for reference (because it was written a long time ago, so the environment is some old, useful to get friends according to the actual situation to OK)
Development environment: MyEclipse 5.5 + Tomcat 6.0 +MySql5.1 Configuration environment: Struts2.1.6+Spring2.0+ Hibernate 3.1 Step 1: Create Java-Web Project, select J2EE 5.0 version
next step
next step
Step 2: Configure spring2.01, add jar package as shown in the figure:
next step
Note: If you are using MyEclipse 6.5 check the first four packages Next
next step
next step
2. Configure the web.xml file to add the following configuration: org.springframework.web.context.ContextLoaderListener //Srping configuration completed, start tomcao, see if there is any error. Step 3: Configure Struts2.1.61, 1. Add jar package, because MyEclipse 5.5 does not integrate struts2, so we need to add jar package ourselves, copy the required jar package to lib directory, There are seven of them: commons-fileupload-1.2.1 commons-io-1.4 freemarker-2.3.13 ognl-2.6.11 struts2-core-2.1.6 struts2-spring-plugin-2.1.6 xwork-2.1.22, configure web.xml, add struts2 core controller The code is as follows: struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* Create struts.xml file Note: Be sure to src root directory, the code is as follows: //Struts 2.1.6 is configured and released for testing. If there is a problem, correct it in time. Step 4: Configure Hibernate 3.11, 1. Add jar package, As shown in the figure:
next step
next step
next step
next step
next step
next step
2. Add a commons-pool.jar or you will be prompted that you cannot find this package when you start, as shown in the figure:
Just add commons-pool.jar to the package. Hibernate 3.1 is configured. Step 5: Adjust jar package 1. Delete asm-2.2.3.jar If you do not delete, jar package conflicts may be reported later in development. 2, Add mysql-connector-java-5.1.13-bin If there is no driver package, add it. If there is, it is unnecessary (it is recommended to use driver packages above 5.0 to better support Chinese). 3. Delete duplicate jar packages (this step is not necessary). If there are duplicate packages, try to use a higher version, after deleting a total of 78 packages (68 packages if using MyEclipse 6.5) There is generally no problem if it is not deleted, and it can be adjusted at any time during subsequent development. Struts 2.1.6 + Spring 2.0 + Hibernate 3.1 development environment is completed. Step 6: Test whether Tomcat is successfully built. Enter http://localhost:8080/myssh323 in the address bar, and the following figure will appear, OK.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.