
com.jxrisesun.framework.boot.starter.config.ResourcesConfig Maven / Gradle / Ivy
package com.jxrisesun.framework.boot.starter.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import com.jxrisesun.framework.boot.starter.util.BootStarterLogicUtils;
/**
* 通用配置
*
* @author jxrisesun
*/
@Configuration
public class ResourcesConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
BootStarterLogicUtils.getBootStarterLogic().configWebResourceHandlers(registry);
}
/**
* 自定义拦截规则
*/
@Override
public void addInterceptors(InterceptorRegistry registry) {
BootStarterLogicUtils.getBootStarterLogic().configWebInterceptors(registry);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy