From f17b60fbc41b2e4257cbf54b1a624be5f95fcc7d Mon Sep 17 00:00:00 2001 From: Lemonochrme Date: Tue, 10 Dec 2024 18:04:17 +0100 Subject: [PATCH] Added user-service service --- helpapp/pom.xml | 1 + helpapp/user-service/pom.xml | 40 +++++++++++++++++++ .../helpapp/rest/RestApplication.java | 20 ++++++++++ .../src/main/resources/application.properties | 1 + 4 files changed, 62 insertions(+) create mode 100644 helpapp/user-service/pom.xml create mode 100644 helpapp/user-service/src/main/java/insa/application/helpapp/rest/RestApplication.java create mode 100644 helpapp/user-service/src/main/resources/application.properties diff --git a/helpapp/pom.xml b/helpapp/pom.xml index 6ef8936..3698f71 100644 --- a/helpapp/pom.xml +++ b/helpapp/pom.xml @@ -9,6 +9,7 @@ rest-service soap-service + user-service diff --git a/helpapp/user-service/pom.xml b/helpapp/user-service/pom.xml new file mode 100644 index 0000000..49f044d --- /dev/null +++ b/helpapp/user-service/pom.xml @@ -0,0 +1,40 @@ + + + insa.application.helpapp + helpapp + 1.0-SNAPSHOT + + 4.0.0 + user-service + + + + + org.springframework.boot + spring-boot-starter-web + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 3.1.4 + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 21 + 21 + + + + + + diff --git a/helpapp/user-service/src/main/java/insa/application/helpapp/rest/RestApplication.java b/helpapp/user-service/src/main/java/insa/application/helpapp/rest/RestApplication.java new file mode 100644 index 0000000..2e82618 --- /dev/null +++ b/helpapp/user-service/src/main/java/insa/application/helpapp/rest/RestApplication.java @@ -0,0 +1,20 @@ +package insa.application.helpapp.rest; + +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 +@RestController +public class RestApplication { + + public static void main(String[] args) { + SpringApplication.run(RestApplication.class, args); + } + + @GetMapping("/hello") + public String hello() { + return "Hello from REST!"; + } +} diff --git a/helpapp/user-service/src/main/resources/application.properties b/helpapp/user-service/src/main/resources/application.properties new file mode 100644 index 0000000..4c00e40 --- /dev/null +++ b/helpapp/user-service/src/main/resources/application.properties @@ -0,0 +1 @@ +server.port=8080