In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to integrate the tomcat plug-in and the Jrebel plug-in. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Sharp tools make good work
The tomcat plug-in is a must-have without the myeclipse plug-in, which reduces the time and hard disk space to deploy the project. Easy to use, very easy to use. Development prerequisites for web.
Download the tomcat plug-in from: http://www.eclipsetotale.com/tomcatPlugin.html
The * version supports tomcat7 and can run in mainstream eclipse3.X.
Unzip the downloaded file to the eclipse/dropins directory and start eclipse to see the effect.
Plug-in setup steps:
Window > > preferences > > tomcat set the tomcat directory and select the corresponding version of tomcat. Set context declaration mode. You can use the default settings. I like to choose server.xml.
Tomcat > > advanced Select a web project to set as a tomcat project
Tomcat > > jvm settings "don't run tomcat in debug mode" can tell what it means. "append to jvm parameters" sets the parameters started by java. Generally, you can add "- Xms768m-Xmx768m-XX:PermSize=128m-XX:MaxPermSize=256m" test value to the tomcat immortal value. "classpath" and "boot classpath" are generally not needed.
Source path selects the web project to start
Tomcat manager app sets the administrative user of tomcat
Project setup steps:
Right-click the project and select properties, you can see the "tomcat" option in the properties dialog box, and click "tomcat".
In general, "Context name" sets the url access path eg: http://localhost:8080/j2eecms/index.do. In this url, "/ j2eecms" corresponds to "Context name".
Set as a web application root general eclipse web project fill in "/ WebContent"
Other projects can be used by default.
For Devloader classpath, you need to put the devloader.zip file under the tomcat plug-in package into the lib directory of tomcat, change the suffix to devloader.jar, and then select "activate devloader" to select the jar you need.
Export to war settings is not used for the time being. I don't know.
This must be deselected, otherwise as soon as the class changes, the project will restart again.
Output the log log to eclipse's console
When you're done, click "kitten" to start the project. It's easy.
(note: tomcat 6 requires a * version of apache-tomcat-6.0.32, and some tomcat 6 versions will cause inexplicable errors when starting up.)
With the tomcat plug-in, web development can be faster, if you are using the jrebel plug-in, web development will be easier.
When these two plug-ins are used together, it really feels like "web development world depends on heaven and slaughters dragons".
Update address of the Jrebel plug-in: http://www.zeroturnaround.com/update-site/
It's easy to install the plug-in. Help > > install new software enter the address above in "work with", and then enter just like installing the software.
After adding, there is a jrebel.jar file. By default, under the eclipse\ plugins\ org.zeroturnaround.eclipse.embedder_x.x.x.xxxxxxxxx directory, copy the copy into the jrebel folder and put it in a directory without spaces eg:E:\ jrebel
Plug-in setup steps:
Window > > preferences > > jrebel modify the jrebel.jar directory. Everything else is fine by default, and you don't need to set anything.
The filter package added by debug is as follows:
Use with the tomcat plug-in
The previous article wrote that the tomcat plug-in has a jvmsetting setting, Window > > preferences > > tomcat adds several parameters to "append to jvm paramerters":-Drebel.log=true;-noverify;-javaagent:jrebel placement position / jrebel.jar (error will be reported if the path is blank)
Now that tomcat and jrebel are integrated, start tomcat, class modification, add and other operations, jrebel will help you hot deploy, save the time to restart, it is stronger to support the mainstream framework "spring struts1,2" to modify the relevant configuration files do not restart.
This is the end of this article on "how to integrate tomcat plug-ins and Jrebel plug-ins". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
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.