Controller accueil

This commit is contained in:
mepiphana2023
2024-04-22 12:11:55 +02:00
parent 511c15fcf7
commit 2b9a75baf7
4 changed files with 23 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
}
tasks.named('test') {

View File

@@ -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";
}
}

View File

@@ -1 +1 @@
spring.application.name=Enchere

View File

@@ -0,0 +1 @@
<h1> Hello world !</h1>