Last change
on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
357 bytes
|
Rev | Line | |
---|
[ed20c2c] | 1 | package com.example.baza.web;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.stereotype.Controller;
|
---|
| 4 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 5 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
| 6 |
|
---|
| 7 | @Controller
|
---|
| 8 | @RequestMapping({"/","/home"})
|
---|
| 9 | public class HomeController {
|
---|
| 10 | @GetMapping
|
---|
| 11 | public String getHomePage(){
|
---|
| 12 | return "home";
|
---|
| 13 | }
|
---|
| 14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.