Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Secure API with HTTPS #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ repositories {
mavenCentral()
}

bootRun {
addResources = true
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

Expand Down
1 change: 1 addition & 0 deletions src/main/java/oraMessaging/MessageApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
public class MessageApplication {

public static void main(String[] args) {
System.out.println("---------------ITS BEGUN------------");
SpringApplication.run(MessageApplication.class, args);
}
}
1 change: 1 addition & 0 deletions src/main/java/oramessaging/models/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class Message {

protected Message() {
this.date = new Date();
System.out.println("New chat message adde!!!!");
}

public long getId() {
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
server.port: 8443
server.ssl.key-store: classpath:keystore.p12
server.ssl.key-store-password: sammiles
server.ssl.keyStoreType: PKCS12
server.ssl.keyAlias: tomcat
Binary file added src/main/resources/keystore.p12
Binary file not shown.