Last change
on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago |
all files
|
-
Property mode
set to
100644
|
File size:
606 bytes
|
Line | |
---|
1 | package com.example.demo.controller;
|
---|
2 |
|
---|
3 | import com.example.demo.model.Movie;
|
---|
4 | import org.springframework.stereotype.Controller;
|
---|
5 | import org.springframework.ui.Model;
|
---|
6 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
7 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
8 | import org.springframework.web.bind.annotation.RequestParam;
|
---|
9 |
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Controller
|
---|
13 | @RequestMapping(value={"/", "/home"})
|
---|
14 | public class HomeController {
|
---|
15 |
|
---|
16 | @GetMapping
|
---|
17 | public String getViewHome(Model model) {
|
---|
18 |
|
---|
19 | model.addAttribute("bodyContent","home");
|
---|
20 | return "master-template";
|
---|
21 | }
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.