Last active
December 31, 2019 09:29
-
-
Save ehsaniara/09c069827551d8de691466c5aa56e650 to your computer and use it in GitHub Desktop.
DemoApplication part of https://medium.com/@ehsaniara/spring-boot-2-with-multiple-datasource-for-postgres-data-replication-182c89124f54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ehsaniara.multidatasource; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import java.util.Properties; | |
@SpringBootApplication | |
public class DemoApplication { | |
public final static String MODEL_PACKAGE = "com.ehsaniara.multidatasource.model"; | |
public final static Properties JPA_PROPERTIES = new Properties() {{ | |
put("hibernate.dialect", "org.hibernate.dialect.PostgreSQL10Dialect"); | |
put("hibernate.hbm2ddl.auto", "update"); | |
put("hibernate.ddl-auto", "update"); | |
put("show-sql", "true"); | |
}}; | |
public static void main(String[] args) { | |
SpringApplication.run(DemoApplication.class, args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment