Skip to content

Commit

Permalink
Merge pull request #180 from JNU-econovation/BE
Browse files Browse the repository at this point in the history
Be
  • Loading branch information
capDoYeonLee authored Aug 10, 2024
2 parents 00fdd24 + a13c98f commit ea44bc7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BE/error/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM openjdk:17-oracle
#FROM openjdk:17-oracle
FROM --platform=linux/amd64 openjdk:17-oracle
RUN mkdir -p /logs

ENV PROFILE defaultgi
Expand All @@ -11,4 +12,4 @@ ENV DD_VERSION=${RELEASE_VERSION}

ARG JAR_FILE="./build/libs/*.jar"
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
ENTRYPOINT ["java", "-jar", "/app.jar"]
21 changes: 21 additions & 0 deletions BE/error/src/main/java/com/example/demo/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.example.demo.config;


import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

@Bean
public OpenAPI openAPI() {
return new OpenAPI().components(new Components()).info(apiInfo());
}

private Info apiInfo() {
return new Info().title("ERROR API").description("ERROR Swagger").version("2.0.0");
}
}

0 comments on commit ea44bc7

Please sign in to comment.