This application is a maven multi module Application for the ways to create application Contexts in a Spring Application.
appcontext-core-nonweb module demonstrates the use of AnnotationConfigApplicationContext
to create a application context in a non-web application.
using annotatiopn config, annotation config with configuration, classpathxmlappcontext, file system xml app context.
appcontext-boot module demonstrates the use of commandLineRunner
to create a application context in a non-web application using spring boot.
appcontext-boot-web module demonstrates the use of SpringApplication
to create a application context in a web application using spring boot.
appcontext-web-annotation module demonstrates the spring mvc / servlet way of creating web application for war packaging using annotation config.
appcontext-web-xml module demonstrates the spring mvc / servlet way of creating web application for war packaging using xml config.
appcontext-web-basic module demonstrates the spring boot way of creating web application for jar packaging using simple Spring and web descriptors (web.xml)