diff --git a/infrastructure/src/main/java/com/callv2/drive/infrastructure/configuration/security/SecurityConfig.java b/infrastructure/src/main/java/com/callv2/drive/infrastructure/configuration/security/SecurityConfig.java index 77ffa143..933ab53c 100644 --- a/infrastructure/src/main/java/com/callv2/drive/infrastructure/configuration/security/SecurityConfig.java +++ b/infrastructure/src/main/java/com/callv2/drive/infrastructure/configuration/security/SecurityConfig.java @@ -38,11 +38,10 @@ SecurityFilterChain securityFilterChain( .requestMatchers(HttpMethod.OPTIONS, "/**") .permitAll() - .requestMatchers("admin/**") + .requestMatchers("/admin/**") .hasAnyRole(ROLE_ADMIN) .requestMatchers(HttpMethod.GET, - "swagger-ui.html", "/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html") diff --git a/infrastructure/src/main/resources/application.yml b/infrastructure/src/main/resources/application.yml index 7bc79f30..7354c848 100644 --- a/infrastructure/src/main/resources/application.yml +++ b/infrastructure/src/main/resources/application.yml @@ -31,6 +31,7 @@ spring: password: ${postgres.password} url: jdbc:postgresql://${postgres.host}:${postgres.port}/${postgres.database} jpa: + open-in-view: false hibernate: ddl-auto: none show-sql: false