mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-03 12:56:10 +08:00
Merge remote-tracking branch 'origin/wr' into wr
This commit is contained in:
commit
1ed92e6bdf
2
pom.xml
2
pom.xml
@ -53,7 +53,7 @@
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.11</version>
|
||||
<version>5.8.26</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
@ -3,7 +3,8 @@ package top.suyiiyii.sims;
|
||||
import com.tangzc.autotable.springboot.EnableAutoTable;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
/*@EnableAutoTable*/
|
||||
|
||||
@EnableAutoTable
|
||||
@SpringBootApplication
|
||||
public class SimsApplication {
|
||||
public static void main(String[] args) {
|
||||
|
@ -19,7 +19,10 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp
|
||||
protected void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(jwtInterceptor())
|
||||
.addPathPatterns("/**")
|
||||
.excludePathPatterns("/user/login"); // 排除不需要验证的路径
|
||||
.excludePathPatterns("/user/login") // 排除不需要验证的路径
|
||||
.excludePathPatterns("/user/register")
|
||||
.excludePathPatterns("/v3/api-docs/**");
|
||||
|
||||
super.addInterceptors(registry);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user