Skip to content

Commit

Permalink
fix : Mixed Content 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
RTUnu12 committed Feb 7, 2025
1 parent d1786ea commit 610a736
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/dnd/reevserver/ReevServerApplication.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
package com.dnd.reevserver;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@OpenAPIDefinition(
servers = {
@Server(url="/", description = "Default Server URL")
}
)
@SpringBootApplication
@ConfigurationPropertiesScan
@EnableJpaAuditing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,16 @@

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;

@Configuration
public class SwaggerConfig {
@Value("${SPRING_SWAGGER_SERVER_URL:https://reevserver.site}")
private String serverUrl;

@Bean
public OpenAPI WonJeongFoodOpenApi() {
return new OpenAPI()
.servers(Collections.singletonList(new Server().url(serverUrl).description("API Server")))
.info(new Info()
.title("Reev API")
.description("Reev 백엔드 API 명세서"));
Expand Down

0 comments on commit 610a736

Please sign in to comment.