Skip to content

Commit

Permalink
Chore : yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonda02 committed Aug 19, 2024
1 parent fb15ee9 commit a566433
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/main/java/hsu/umc/server/UMCConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class UMCConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "PATCH", "DELETE", "PUT")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down
13 changes: 13 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${rds.hostname}:${rds.port}/${rds.db.name}
username: ${aws.db.username}
password: ${aws.db.password}

jpa:
hibernate:
ddl-auto: update



18 changes: 18 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${db.url}
username: ${db.username}
password: ${db.password}
sql:
init:
mode: never
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
show_sql: true
format_sql: true
use_sql_comments: true
hbm2ddl:
auto: update
17 changes: 6 additions & 11 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${rds.hostname}:${rds.port}/${rds.db.name}
username: ${aws.db.username}
password: ${aws.db.password}

jpa:
hibernate:
ddl-auto: update


profiles:
active: dev
# active: ${spring.profiles.active}

api:
server:
url: http://localhost:8080

0 comments on commit a566433

Please sign in to comment.