mirror of
https://github.com/Lemonochrme/service-architecture.git
synced 2025-06-08 13:40:50 +02:00
Added user-service service
This commit is contained in:
parent
7a9150ed33
commit
f17b60fbc4
4 changed files with 62 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
<modules>
|
||||
<module>rest-service</module>
|
||||
<module>soap-service</module>
|
||||
<module>user-service</module>
|
||||
</modules>
|
||||
|
||||
<dependencyManagement>
|
||||
|
|
40
helpapp/user-service/pom.xml
Normal file
40
helpapp/user-service/pom.xml
Normal file
|
@ -0,0 +1,40 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<parent>
|
||||
<groupId>insa.application.helpapp</groupId>
|
||||
<artifactId>helpapp</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>user-service</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!-- Dépendance pour créer un service REST -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- Plugin Maven pour Spring Boot -->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>3.1.4</version>
|
||||
</plugin>
|
||||
|
||||
<!-- Plugin pour configurer le compilateur -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>21</source>
|
||||
<target>21</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
@ -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!";
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
server.port=8080
|
Loading…
Add table
Reference in a new issue