| | |
| | | package com.yuanchu.mom.config; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import cn.hutool.log.Log; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; |
| | |
| | | |
| | | @Resource |
| | | private PowerConfig powerConfig; |
| | | |
| | | @Resource |
| | | private LogConfig logConfig; |
| | | |
| | | @Value("${file.path}") |
| | | private String filePath; |
| | |
| | | protected void addInterceptors(InterceptorRegistry registry) { |
| | | registry.addInterceptor(fiferConfig).addPathPatterns("/**"); |
| | | registry.addInterceptor(powerConfig).addPathPatterns("/**"); |
| | | registry.addInterceptor(logConfig).addPathPatterns("/**"); |
| | | super.addInterceptors(registry); |
| | | } |
| | | } |