Start of backend and webserver
This commit is contained in:
parent
a06a558d7b
commit
e7e5168073
22 changed files with 130 additions and 283 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
server.port = 8000
|
||||
server.port = 4730
|
||||
spring.application.name = Achievements Project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue