update port and pom xml
This commit is contained in:
parent
4c7a65816d
commit
199d122038
5
pom.xml
5
pom.xml
|
@ -8,6 +8,8 @@
|
|||
<artifactId>java-api</artifactId>
|
||||
<version>0.1</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
|
@ -92,6 +94,9 @@
|
|||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<executable>true</executable>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Collections;
|
|||
public class App {
|
||||
public static void main(String [ ] args){
|
||||
SpringApplication app = new SpringApplication(App.class);
|
||||
app.setDefaultProperties(Collections.singletonMap("server.port","8083"));
|
||||
app.setDefaultProperties(Collections.singletonMap("server.port","10053"));
|
||||
app.run(args);
|
||||
}
|
||||
|
||||
|
|
|
@ -5,10 +5,9 @@ import com.j256.ormlite.support.ConnectionSource;
|
|||
|
||||
public class DatabaseHelper {
|
||||
private static final String DATABASE_NAME = "monnethic";
|
||||
private static final String DATABASE_USER = "postgres";
|
||||
private static final String DATABASE_PWD = "L-*q~Ytaha{;u+7yJ8";
|
||||
//private final static String DATABASE_URL = "jdbc:postgresql://host:port/"+DATABASE_NAME;
|
||||
private final static String DATABASE_URL = "jdbc:postgresql://37.187.101.44:5432/"+DATABASE_NAME;
|
||||
private static final String DATABASE_USER = "";
|
||||
private static final String DATABASE_PWD = "";
|
||||
private final static String DATABASE_URL = "jdbc:postgresql://host:port/"+DATABASE_NAME;
|
||||
|
||||
public ConnectionSource setupDatabaseConnection(){
|
||||
try{
|
||||
|
|
Loading…
Reference in a new issue