}
数据库表
RedisController.java
package com.zks.controller;
import com.zks.entity.TUser;
import com.zks.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
-
@author :zhoukaishun
-
@date :Created in 2019/5/31 15:08
-
@description:${description}
-
@modified By:
-
@version: v e r s i o n version version
*/
@RestController
public class RedisController {
@Autowire