Polishing.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Description</h1>
|
<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>
|
JSESSIONID cookie. We are also able to customize the way of identifying what the requested session id is.</p>
|
||||||
|
|
||||||
<h1>Try it</h1>
|
<h1>Try it</h1>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
package org.springframework.session.mongodb.examples.mvc;
|
package org.springframework.session.mongodb.examples.mvc;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
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.
|
* Controller for sending the user to the login view.
|
||||||
@@ -26,7 +26,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class IndexController {
|
public class IndexController {
|
||||||
@RequestMapping("/")
|
|
||||||
|
@GetMapping("/")
|
||||||
public String index() {
|
public String index() {
|
||||||
return "index";
|
return "index";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user