fix test names, missing templates
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user