Skip to content

Commit

Permalink
docker use
Browse files Browse the repository at this point in the history
  • Loading branch information
taeyeongKims committed Jan 26, 2025
1 parent f767971 commit 7e600f9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'

compileOnly 'org.projectlombok:lombok'
// runtimeOnly 'com.mysql:mysql-connector-j'
runtimeOnly 'com.mysql:mysql-connector-j'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@ public class QLocation extends EntityPathBase<Location> {

public static final QLocation location = new QLocation("location");

public final com.example.api.domain.QBaseEntity _super = new com.example.api.domain.QBaseEntity(this);

public final StringPath address = createString("address");

//inherited
public final DateTimePath<java.time.LocalDateTime> createdDate = _super.createdDate;

public final StringPath detailAddress = createString("detailAddress");

public final NumberPath<Long> id = createNumber("id", Long.class);

//inherited
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

public final StringPath zipcode = createString("zipcode");

public QLocation(String variable) {
Expand Down
8 changes: 8 additions & 0 deletions src/main/generated/com/example/api/domain/QReviewReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ public class QReviewReport extends EntityPathBase<ReviewReport> {

public static final QReviewReport reviewReport = new QReviewReport("reviewReport");

public final QBaseEntity _super = new QBaseEntity(this);

//inherited
public final DateTimePath<java.time.LocalDateTime> createdDate = _super.createdDate;

public final StringPath reason = createString("reason");

public final NumberPath<Long> reportId = createNumber("reportId", Long.class);

public final QReview review;

//inherited
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

public QReviewReport(String variable) {
this(ReviewReport.class, forVariable(variable), INITS);
}
Expand Down
24 changes: 10 additions & 14 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ spring.application.name=api

spring.config.import=optional:file:.env[.properties]

# H2 Database Configuration (In-Memory)
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
# mysql Database Configuration
spring.datasource.url=jdbc:mysql://52.79.243.139:3306/danpat?useSSL=false&serverTimezone=Asia/Seoul&characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=password
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# Mongo Database Configuration
spring.data.mongodb.auto-index-creation=true

# JPA and Hibernate Configuration
spring.jpa.hibernate.ddl-auto=create
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect

# H2 Console Configuration
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect

# Logging (Optional)
logging.level.org.hibernate.SQL=DEBUG
Expand All @@ -26,9 +25,6 @@ logging.level.root=INFO
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n

# Mongo Database Configuration
spring.data.mongodb.auto-index-creation=true

# SMTP
spring.mail.host=smtp.gmail.com
spring.mail.port=587
Expand Down

0 comments on commit 7e600f9

Please sign in to comment.