...
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Eclipse might show you an error marker on your project, claiming that " By adding target runtime to the project, http-servlet will be available to the project class-path. Alternatively, you can fix this by adding javax.servlet.jsp-api to the pom and mark the dependency as provided
|
Let Spring take over
Now, you are all setup to start with Spring. First, you need to tell Tomcat that you want Spring to handle incoming requests. You do this by specifying which servlet Tomcat should use as 'entry point' into your application. Open the file web.xml located in src > main > webapp > WEB-INF. Add the following code inside the 'web-app' tag after the 'display-name' section:
...