採用構造函數注入
public class ConnectionUtil{
public static RedisCache redisCache;
@Autowired
public ConnectionUtil(RedisCache _redisCache){
ConnectionUtil.redisCache=_redisCache;
}
}
採用構造函數注入
public class ConnectionUtil{
public static RedisCache redisCache;
@Autowired
public ConnectionUtil(RedisCache _redisCache){
ConnectionUtil.redisCache=_redisCache;
}
}
import requests data = { 'channel': '99x', 'called_number': '135xxx', 'tts_code': 'TTS_xx', 'tts_p