Package com.bytedesk.core.session
Class SessionController
java.lang.Object
com.bytedesk.core.session.SessionController
https://docs.spring.io/spring-session/reference/guides/boot-redis.html
- Author:
- jackning
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
getSession
(jakarta.servlet.http.HttpSession session) http://127.0.0.1:9003/session/org.springframework.http.ResponseEntity<?>
setSession
(String username, jakarta.servlet.http.HttpSession session) http://127.0.0.1:9003/session/set?
-
Constructor Details
-
SessionController
public SessionController()
-
-
Method Details
-
getSession
@GetMapping({"","/"}) public org.springframework.http.ResponseEntity<?> getSession(jakarta.servlet.http.HttpSession session) http://127.0.0.1:9003/session/- Parameters:
session
-- Returns:
-
setSession
@GetMapping("/set") public org.springframework.http.ResponseEntity<?> setSession(@RequestParam String username, jakarta.servlet.http.HttpSession session) http://127.0.0.1:9003/session/set?username=chrome- Parameters:
username
-session
-- Returns:
-