advanced code snippet search
bosshog on 08/20/12
08/20/12 08:32pm
How to embedded tomcat 7 java
String webappDirLocation = "src/main/webapp/"; Tomcat tomcat = new Tomcat(); tomcat.setPort(8080); tomcat.addWebapp("/jerseyTest", new File(webappDirLocation).getAbsolutePath()); tomcat.start(); tomcat.getServer().await();
Report this snippet Tweet
Comment:
You need to login to post a comment.