mirror of
https://github.com/PaulReichmuth/timekeep-backend.git
synced 2025-12-22 22:41:59 +00:00
first small testing prototype
This commit is contained in:
17
pom.xml
17
pom.xml
@@ -8,6 +8,7 @@
|
||||
<version>4.0.0-M3</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
<groupId>de.pnreichmuth</groupId>
|
||||
<artifactId>timekeep-backend</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
@@ -30,14 +31,14 @@
|
||||
<java.version>25</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jdbc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-data-jdbc</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-data-jpa</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||||
|
||||
@@ -2,12 +2,13 @@ package de.pnreichmuth.timekeep_backend;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@SpringBootApplication
|
||||
public class TimekeepBackendApplication {
|
||||
|
||||
static void main(String[] args) {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(TimekeepBackendApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package de.pnreichmuth.timekeep_backend;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@RestController
|
||||
public class TimekeepRestController {
|
||||
|
||||
public TimekeepRestController() {
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/time/test")
|
||||
public Testclass timeEndpoint(){
|
||||
return new Testclass("TEST",1);
|
||||
}
|
||||
@GetMapping("/time")
|
||||
public Date getTime(){
|
||||
return new Date();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user