Controller accueil
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package fr.eni.enchere.controllers;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
|
||||
@Controller
|
||||
public class AccueilController {
|
||||
|
||||
public AccueilController() {
|
||||
}
|
||||
|
||||
@GetMapping({"/", "/accueil"})
|
||||
public String viewAccueil(Model model) {
|
||||
return "accueil";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
spring.application.name=Enchere
|
||||
|
||||
|
||||
1
src/main/resources/templates/accueil.html
Normal file
1
src/main/resources/templates/accueil.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1> Hello world !</h1>
|
||||
Reference in New Issue
Block a user