Creating a Spring application context and configuring a ViewResolver