Polishing.

This commit is contained in:
Greg Turnquist
2017-08-23 14:03:44 -05:00
parent 3ec6e49f5b
commit e034c813bd
2 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
<body>
<div class="container">
<h1>Description</h1>
<p>This application demonstrates how to use a Redis instance to back your session. Notice that there is no
<p>This application demonstrates how to use a MongoDB instance to back your session. Notice that there is no
JSESSIONID cookie. We are also able to customize the way of identifying what the requested session id is.</p>
<h1>Try it</h1>

View File

@@ -16,7 +16,7 @@
package org.springframework.session.mongodb.examples.mvc;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.GetMapping;
/**
* Controller for sending the user to the login view.
@@ -26,7 +26,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
*/
@Controller
public class IndexController {
@RequestMapping("/")
@GetMapping("/")
public String index() {
return "index";
}