Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
21165 ashik.ali 1
package com.spice.profitmandi.web.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.InterceptorRegistry;
7
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
8
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
9
 
10
@Configuration
11
@EnableWebMvc
12
@ComponentScan("com.mymarket.shop_status.*")
13
public class WebMVCConfig extends WebMvcConfigurerAdapter{
14
 
15
	private static final String RESOURCES_PATTERN="/resources/**";
16
	private static final String RESOURCES_LOCATION="/resources/";
17
 
18
 
19
	@Override
20
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
21
        registry.addResourceHandler(RESOURCES_PATTERN).addResourceLocations(RESOURCES_LOCATION);
22
    }
23
 
24
	@Override
25
	public void addInterceptors(InterceptorRegistry registry) {
26
		//registry.addInterceptor(updatePasswordRequestInterceptor).addPathPatterns(ShopStatusWebConstants.URL_HOME_USERS_UPDATE_PASSWORD);
27
	}
28
}