@Controller
public class InfoCtrl {
@Autowired
private InfoSer infoSer;
@GetMapping("/admin/info")
<BUG>public String info(Model model) throws Exception {
</BUG>
Info info = infoSer.getInfo();
model.addAttribute("info", info);
return "admin/info";

@Controller
public class InfoCtrl {
@Autowired
private InfoSer infoSer;
@GetMapping("/admin/info")
public String info(Model model) throws RuntimeException {
Info info = infoSer.getInfo();
model.addAttribute("info", info);
return "admin/info";
