1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 06:51:23 +08:00

Allow anonymous access to api documentation

This commit is contained in:
2023-05-06 14:25:19 +08:00
parent 2b1b2732eb
commit 9223204833
2 changed files with 1 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ package com.cfive.pinnacle;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
//@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@SpringBootApplication @SpringBootApplication
public class PinnacleApplication { public class PinnacleApplication {

View File

@@ -88,7 +88,7 @@ public class SecurityConfig {
// Allow anonymous access // Allow anonymous access
.authorizeHttpRequests() .authorizeHttpRequests()
.requestMatchers("/login") .requestMatchers("/login", "/doc.html", "swagger-ui/**", "/webjars/**", "/v3/**")
.anonymous() .anonymous()
// Authentication required // Authentication required