package com.rshk.demo; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; import org.springframework.web.servlet.config.annotation.EnableWebMvc; @Configuration @EnableWebMvc @PropertySource("classpath:application.properties") public class AppConfiguration extends AnnotationConfigWebApplicationContext{ }