Skip to content

Commit 5f25fd9

Browse files
fixed URL mapping issue for index
1 parent 29470dc commit 5f25fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/guru/springframework/controllers/IndexController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@Controller
1010
public class IndexController {
1111

12-
@RequestMapping("/")
12+
@RequestMapping({"/", ""})
1313
public String index(){
1414
return "index";
1515
}

0 commit comments

Comments
 (0)