新增B站直播相关配置

新增MySQL及Redis配置
新增VUE前端
This commit is contained in:
2020-03-05 17:43:41 +08:00
parent 58a6279661
commit 6b5d50dd40
30 changed files with 13882 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
package com.yutou.tools.utils;
import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component
public class RedisTools {
@Resource
RedisTemplate<String,String> redisTemplate;
public void set(String key,String value){
redisTemplate.opsForValue().set(key,value);
}
public void set(String key,String value,long time){
redisTemplate.opsForValue().set(key, value, time);
}
public String get(String key){
return redisTemplate.opsForValue().get(key);
}
}