mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 15:54:52 +08:00 
			
		
		
		
	允许接口文档目录的未登录访问
启用自动建表
This commit is contained in:
		
							parent
							
								
									c5358cd33e
								
							
						
					
					
						commit
						09ad050a89
					
				
							
								
								
									
										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