Last change
on this file was bc0eeb4, checked in by Evgenija2000 <eva_nikolaevska@…>, 2 years ago |
all files
|
-
Property mode
set to
100644
|
File size:
398 bytes
|
Line | |
---|
1 | package com.example.db.controller;
|
---|
2 |
|
---|
3 | import org.springframework.stereotype.Controller;
|
---|
4 | import org.springframework.ui.Model;
|
---|
5 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
6 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
7 |
|
---|
8 | @Controller
|
---|
9 | @RequestMapping({"/","/home"})
|
---|
10 | public class HomeController {
|
---|
11 | @GetMapping
|
---|
12 | public String getHomePage(){
|
---|
13 | return "home";
|
---|
14 | }
|
---|
15 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.