-
Notifications
You must be signed in to change notification settings - Fork 0
recvezitor/SpringWSTutorial
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Spring Web Service Tutorial step0 - the simplest web-app with servlets: 1 static page and 1 servlet - no extra libraries as a result war-file about 3.5 Kb - pom properties: - package type is 'war' - does not inherit parent pom - javax.servlet:servlet-api has scope provided since tomcat already contains this library - to launch example: - run 'mvn clean install' - copy 'simple.war' to tomcat folder 'webapps' - restart tomcat - http://localhost:8080/simple or http://localhost:8080/simple/hello step1 - the simplest web-app with servlet and spring context - spring context is loaded using ContextLoaderListener - added dependency spring-web - http://localhost:8080/SimpleSpring/hello step2 - the simplest spring web service - http://localhost:8080/SimpleSpringWS/getSquare.wsdl step3 - there is no 'webapp' folder - package type could be 'jar' instead 'war' - javax.servlet:servlet-api has scope 'compile' since we run app not in servlet container - http://localhost:18889/hithere/getSquare.wsdl - http://localhost:18889/hithere/hello