fix test names, missing templates

This commit is contained in:
Loredana
2018-12-09 20:36:56 +02:00
parent bae846571a
commit 95b1a9b158
30 changed files with 277 additions and 33 deletions

View File

@@ -0,0 +1,19 @@
package com.baeldung.web;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class SimpleController {
@Value("${spring.application.name}")
String appName;
@RequestMapping("/")
public String homePage(Model model) {
model.addAttribute("appName", appName);
return "home";
}
}