mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-05 13:36:12 +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>
|
<dependency>
|
||||||
<groupId>cn.hutool</groupId>
|
<groupId>cn.hutool</groupId>
|
||||||
<artifactId>hutool-all</artifactId>
|
<artifactId>hutool-all</artifactId>
|
||||||
<version>5.8.11</version>
|
<version>5.8.26</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
@ -3,7 +3,8 @@ package top.suyiiyii.sims;
|
|||||||
import com.tangzc.autotable.springboot.EnableAutoTable;
|
import com.tangzc.autotable.springboot.EnableAutoTable;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
/*@EnableAutoTable*/
|
|
||||||
|
@EnableAutoTable
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class SimsApplication {
|
public class SimsApplication {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
@ -19,7 +19,10 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp
|
|||||||
protected void addInterceptors(InterceptorRegistry registry) {
|
protected void addInterceptors(InterceptorRegistry registry) {
|
||||||
registry.addInterceptor(jwtInterceptor())
|
registry.addInterceptor(jwtInterceptor())
|
||||||
.addPathPatterns("/**")
|
.addPathPatterns("/**")
|
||||||
.excludePathPatterns("/user/login"); // 排除不需要验证的路径
|
.excludePathPatterns("/user/login") // 排除不需要验证的路径
|
||||||
|
.excludePathPatterns("/user/register")
|
||||||
|
.excludePathPatterns("/v3/api-docs/**");
|
||||||
|
|
||||||
super.addInterceptors(registry);
|
super.addInterceptors(registry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user