Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21541 ashik.ali 1
package com.spice.profitmandi.config;
2
 
3
import org.springframework.context.annotation.ComponentScan;
4
import org.springframework.context.annotation.Configuration;
5
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
6
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
7
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
8
 
9
@EnableWebMvc
10
@Configuration
11
@ComponentScan({"com.spice.profitmandi.*"})
12
public class WebConfig extends WebMvcConfigurerAdapter{
13
 
14
	private static final String RESOURCES_PATTERN="/resources/**";
15
	private static final String RESOURCES_LOCATION="/resources/";
16
 
17
	@Override
18
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
19
	   registry.addResourceHandler(RESOURCES_PATTERN).addResourceLocations(RESOURCES_LOCATION);
20
	}
21
}