Start of backend and webserver

This commit is contained in:
Gnarwhal 2021-01-27 14:35:09 -05:00
parent a06a558d7b
commit e7e5168073
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
22 changed files with 130 additions and 283 deletions

View file

@ -20,7 +20,7 @@ public class Controller {
public Controller() {}
@RequestMapping(value = "/achievements", method = GET, produces = "application/json")
public ResponseEntity index() {
public ResponseEntity<String> index() {
try {
var achievements = db.getAchievements();
var mapper = new ObjectMapper();

View file

@ -6,7 +6,6 @@ import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;

View file

@ -1,2 +1,2 @@
server.port = 8000
server.port = 4730
spring.application.name = Achievements Project