SpringSource Tool Suite (STS): How to run server and Java project through the IDE?
I'm using the l开发者_如何学Pythonatest version of SpringSource Tool Suite (STS). I have set up a Java project. My code has an Ant build file that packages a WAR. I have Tomcat 6.0.24 installed locally on my Mac 10.6.3. Can someone point me to how I deploy my project onto the server from the IDE and as such, set up debugging with breakpoints?
Thanks, - Dave
Here is what you need to do:
- Open up the servers view inside of STS.
- Create a new Tomcat instance, and point it to your locally installed Tomcat. (Alternatively, you can use the pre-installed tcServer instance, which is essentially Tomcat with a few extra things like Spring Insight).
- Right-click on your project and select Configure -> Convert to Faceted Form...
- In the dialog that comes up, choose Dynamic Web Module
- Now, you should be able to drag and drop your project onto the server instance.
- After that, right-click on the server instance and select "Debug"
You can find more detailed instructions here: http://www.ibm.com/developerworks/library/os-eclipse-tomcat/index.html
精彩评论