Skip to content

Commit

Permalink
fix: 어노테이션 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
vcho1958 committed Feb 5, 2023
1 parent 1617012 commit 1d90313
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.0.2'
id 'io.spring.dependency-management' version '1.1.0'
id("org.springdoc.openapi-gradle-plugin") version "1.6.0"
}

group = 'com.posomo'
Expand All @@ -22,12 +23,14 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.9'
}

tasks.named('test') {
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/posomo/saltit/ApiDocConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.posomo.saltit;

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

@Configuration
public class ApiDocConfig {
@Bean
public GroupedOpenApi publicApi() {
return GroupedOpenApi.builder()
.group("v1-definition")
.pathsToMatch("/**")
.build();
}
@Bean
public OpenAPI springShopOpenAPI() {
return new OpenAPI()
.info(new Info().title("Saltit Restaurant OPEN API")
.description(" 프로젝트 API 명세서입니다.")
.version("v0.0.1"));
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.posomo.saltit.domain.restaurant.entity.manyToOne;

import jakarta.persistence.DiscriminatorColumn;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;

@Entity
@DiscriminatorColumn(name = "BREAK")
@DiscriminatorValue("BREAK")
public class RestaurantBreakTime extends RestaurantTime{
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.posomo.saltit.domain.restaurant.entity.manyToOne;


import jakarta.persistence.DiscriminatorColumn;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;

@Entity
@DiscriminatorColumn(name = "LAST_ORDER")
@DiscriminatorValue("LAST_ORDER")
public class RestaurantLastOrderTime extends RestaurantTime{
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.posomo.saltit.domain.restaurant.entity.manyToOne;

import jakarta.persistence.DiscriminatorColumn;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;

@Entity
@DiscriminatorColumn(name = "OPEN")
@DiscriminatorValue("OPEN")
public class RestaurantOpenTime extends RestaurantTime{
}

0 comments on commit 1d90313

Please sign in to comment.