Skip to content

Commit

Permalink
[#23] refactor: application.propeties 삭제 및 application.yml 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
hsik0225 committed May 26, 2020
1 parent 5a1b199 commit 7b14b79
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public void checkInput() {
}

private void validCheckInDate() {
if(checkInDate.equals(LocalDate.MIN)) {
if (checkInDate.equals(LocalDate.MIN)) {
throw new IllegalArgumentException("Please Input Check-In-Date!");
}
}

private void validCheckOutDate() {
if(checkOutDate.equals(LocalDate.MAX)) {
if (checkOutDate.equals(LocalDate.MAX)) {
throw new IllegalArgumentException("Please Input Check-Out-Date!");
}
}
Expand Down
15 changes: 0 additions & 15 deletions BE/src/main/resources/application.properties

This file was deleted.

27 changes: 27 additions & 0 deletions BE/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
spring:
profiles:
active: local

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
platform: mysql

logging:
level:
sql: debug
---
spring:
profiles: local

datasource:
url: ENC(HSjfo6OYwgBwHCc/00w5bbZOxmOQPHQgBOvTG1WU5P1v+4NC2r8QKmiygx1tvQ6l1Ty+XuYnYGT9rlbua2WwbrU9v/Og1TPkTd/bIvFhrBQeZl0Pjxr0xQ==)
username: ENC(/5pFz7soRZT+On8AeVz8hQ==)
password: ENC(CSt6010jO5jxYaOOwIE1TWHdaVqE9aqw)
---
spring:
profiles: real_server

datasource:
url: ENC(HSjfo6OYwgBwHCc/00w5bbZOxmOQPHQgBOvTG1WU5P1v+4NC2r8QKmiygx1tvQ6l1Ty+XuYnYGT9rlbua2WwbrU9v/Og1TPkTd/bIvFhrBQeZl0Pjxr0xQ==)
username: ENC(sPi1tjFxEt/Nvo8KMdYjNmVoM9l7VVf9)
password: ENC(mj8NhgF4CKjUnIW0w+Xhn0FN4rvU5hx9)

0 comments on commit 7b14b79

Please sign in to comment.