https://github.com/pleft/springsprint2
Spring Framework Experimenting Sprints #2
https://github.com/pleft/springsprint2
Last synced: about 1 year ago
JSON representation
Spring Framework Experimenting Sprints #2
- Host: GitHub
- URL: https://github.com/pleft/springsprint2
- Owner: pleft
- License: apache-2.0
- Created: 2016-12-09T14:50:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T12:42:13.000Z (over 8 years ago)
- Last Synced: 2025-02-14T08:48:22.319Z (over 1 year ago)
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Sprint 2
## Spring Framework Experimenting Sprints #2
### Description
Simple Spring application demonstrating two ways of initializing the Web Application Context. Either by implementing the `WebApplicationInitializer` interface and registering an DispatcherServlet or by implementing the `AbstractAnnotationConfigDispatcherServletInitializer`. The second approach is in a separate branch named: `DispatcherServletInitializer`.
This example also shows the two contexts created, one is the rootContext in which we register beans like `service`s, `DAO`s etc (`RootContextConfiguration`)and the other is the servlet context in which we register our `Controllers` (`ServletContextConfiguration`)
### How to run
run the command: `mvn clean package tomcat7:run`
Accessible through: `http://localhost:8080/SpringSprint2/`