diff --git a/posttest/src/main/java/com/kbtg/bootcamp/posttest/PosttestApplication.java b/posttest/src/main/java/com/kbtg/bootcamp/lottery/Application.java similarity index 58% rename from posttest/src/main/java/com/kbtg/bootcamp/posttest/PosttestApplication.java rename to posttest/src/main/java/com/kbtg/bootcamp/lottery/Application.java index 630c3b8d..8826641f 100644 --- a/posttest/src/main/java/com/kbtg/bootcamp/posttest/PosttestApplication.java +++ b/posttest/src/main/java/com/kbtg/bootcamp/lottery/Application.java @@ -1,13 +1,11 @@ -package com.kbtg.bootcamp.posttest; +package com.kbtg.bootcamp.lottery; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication -public class PosttestApplication { - +public class Application { public static void main(String[] args) { - SpringApplication.run(PosttestApplication.class, args); + SpringApplication.run(Application.class, args); } - -} +} \ No newline at end of file diff --git a/posttest/src/main/resources/application.properties b/posttest/src/main/resources/application.properties index 8d3eb44e..06cf0ed0 100644 --- a/posttest/src/main/resources/application.properties +++ b/posttest/src/main/resources/application.properties @@ -1,6 +1,11 @@ -server.port=8081 -spring.datasource.url=jdbc:postgresql://localhost:5432/ -spring.datasource.username= -spring.datasource.password= -spring.jpa.hibernate.ddl-auto= -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect \ No newline at end of file +server.port=8888 +spring.datasource.url=${DATABASE_URL} +spring.datasource.username=lottery +spring.datasource.password=Plottery001!@# +#spring.jpa.hibernate.ddl-auto= +spring.jpa.hibernate.ddl-auto=validate +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect + +spring.security.user.name=kamusername +spring.security.user.password=kampassword +logging.level.org.springframework.security=DEBUG \ No newline at end of file