@Autowired
private RedisTemplate<String, Object> redisTemplate;
***************************
APPLICATION FAILED TO START
***************************
Description:
Field redisTemplate in zorvfn.ccoal.service.RedisService required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.
解决方案:
@Resource
private RedisTemplate<String, Object> redisTemplate;