Class 'InterceptorConfig' must either be declared abstract or implement abstract method 'configurePathMatch(PathMatchConfigurer)' in 'WebMvcConfigurer'
更改Spring版本
原来
<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version>
修改后
<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.1.RELEASE</version>