Skip to content

Commit

Permalink
feat(Lottery) : init lottery application and env name
Browse files Browse the repository at this point in the history
  • Loading branch information
peachoenixzz committed Feb 17, 2024
1 parent c33f43b commit f93dea9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}

}
}
17 changes: 11 additions & 6 deletions posttest/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
server.port=8081
spring.datasource.url=jdbc:postgresql://localhost:5432/<YOUR_DATABASE_NAME>
spring.datasource.username=<YOUR_USERNAME>
spring.datasource.password=<YOUR_PASSWORD>
spring.jpa.hibernate.ddl-auto=<create | create-drop | update | validate | none>
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
server.port=8888
spring.datasource.url=${DATABASE_URL}
spring.datasource.username=lottery
spring.datasource.password=Plottery001!@#
#spring.jpa.hibernate.ddl-auto=<create | create-drop | update | validate | none>
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

0 comments on commit f93dea9

Please sign in to comment.