How to use spring MVC's tag in a java application context?

后端 未结 3 915
误落风尘
误落风尘 2020-12-05 03:35

I have created \'for now\' a simple and basic spring web application. I am used to have a deployment descriptor as a simple web.xml file, and then an application context as

3条回答
  •  长情又很酷
    2020-12-05 04:03

    Try this:

    @Override
        public void addResourceHandlers(final ResourceHandlerRegistry registry) {
            registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
        }
    

提交回复
热议问题