Skip to content

Commit

Permalink
Merge pull request #27 from 7th-UMC/feat/5
Browse files Browse the repository at this point in the history
Fix : yml 수정
  • Loading branch information
hyeonda02 authored Aug 19, 2024
2 parents a371021 + fb15ee9 commit cb2d942
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 38 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("*")
.allowedOrigins("http://localhost:5173")
.allowedMethods("GET", "POST", "PATCH", "DELETE", "PUT")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down
13 changes: 0 additions & 13 deletions src/main/resources/application-dev.yml

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/resources/application-local.yml

This file was deleted.

17 changes: 11 additions & 6 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
spring:
profiles:
active: dev
# active: ${spring.profiles.active}
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



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

0 comments on commit cb2d942

Please sign in to comment.