From 40d931ec0ce998d5ad4edda8cf3f540a40c2465a Mon Sep 17 00:00:00 2001 From: cato447 Date: Wed, 11 Nov 2020 23:36:53 +0100 Subject: [PATCH] Got a server set up to host the VotingSystem. --------------------------------------------------- Internet address: http://***REMOVED*** Server IP address: ***REMOVED*** Port: 8000 -------------------------------------------------- Try to port the database to be hosted on the server rather than on be hosted on localhost --- .../AbizeitungVotingSystem/controller/VotingController.java | 1 - src/main/resources/application.properties | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java index e2a0c16..d321c27 100644 --- a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java +++ b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java @@ -9,7 +9,6 @@ import com.github.cato447.AbizeitungVotingSystem.table.TableAction; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 2db3617..206d14d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,4 +2,7 @@ spring.datasource.url=jdbc:mysql://localhost/VotingSystem spring.datasource.username=***REMOVED*** spring.datasource.password=***REMOVED*** -spring.jpa.hibernate.ddl-auto=update \ No newline at end of file +spring.jpa.hibernate.ddl-auto=update + +# Tomcat +server.port = 8000