计算经纬度页面后端springboot代码
王飞
2025-01-23 584633e45c9a93119f17fcf93cb1d9de07286ce0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.jisuan.util;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 
@Configuration
public class WebConfig implements WebMvcConfigurer {
 
    @Autowired
    private JwtInterceptor tokenInterceptor;
 
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(tokenInterceptor).addPathPatterns("/**")
                .excludePathPatterns("/ddmm2d", "/dd2ddmm", "/gnssToxy", "/jisuanjingwei.do", "/jisuanbaowen.do", "/jisuandubaowen.do", "/toplane","/public/**");
    }
}