Ajoute du squelette d'un client
This commit is contained in:
parent
ba330df72b
commit
717edf9812
12 changed files with 524 additions and 0 deletions
12
clientui/src/main/java/com/clientui/ClientUiApplication.java
Normal file
12
clientui/src/main/java/com/clientui/ClientUiApplication.java
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package com.clientui;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ClientUiApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ClientUiApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package com.clientui.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
|
||||
@Controller
|
||||
public class ClientController {
|
||||
|
||||
@RequestMapping("/")
|
||||
public String accueil(Model model){
|
||||
|
||||
return "Accueil";
|
||||
}
|
||||
|
||||
}
|
||||
0
clientui/src/main/resources/application.properties
Normal file
0
clientui/src/main/resources/application.properties
Normal file
22
clientui/src/main/resources/templates/Accueil.html
Normal file
22
clientui/src/main/resources/templates/Accueil.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<title>Mcommerce</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="webjars/bootstrap/4.0.0-2/css/bootstrap.min.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div class="container">
|
||||
|
||||
<h1>Application Mcommerce</h1>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="webjars/bootstrap/4.0.0-2/js/bootstrap.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.clientui;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class ClientUiApplicationTests {
|
||||
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue