***************************
APPLICATION FAILED TO START
***************************
Description:
Field jedisPool in com.jcn.redis.service.RedisService required a bean of type 'redis.clients.jedis.JedisPool' 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 'redis.clients.jedis.JedisPool' in your configuration.
改成这样:
@Configuration
@Service
public class RedisService extends CachingConfigurerSupport{
Logger logger = LoggerFactory.getLogger(RedisService.class);
@Value("${redis.host}")
private String host;
@Value("${redis.port}")
private int port;
@Value("${redis.timeout}")
private int timeout;
@Bean
public Je