提交 20da96bd 编写于 作者: 爱吃血肠's avatar 爱吃血肠

解决缓存报错问题

上级 a267600f
package com.yingjun.ssm.cache;
import org.springframework.stereotype.Component;
/**
* redis缓存
*
* @author yingjun
*
*/
@Component
public class RedisCache {
}
package com.yingjun.ssm.cache;
import org.springframework.stereotype.Component;
/**
* redis缓存
*
* 采用Jedis Cluster
*
* @author yingjun
*
*/
@Component
public class RedisClusterCache {
}
package com.yingjun.ssm.quartz;
import org.springframework.stereotype.Component;
@Component
public class BizQuartz {
}
package com.yingjun.ssm.service.impl;
import com.yingjun.ssm.cache.RedisCache;
import com.yingjun.ssm.dao.GoodsDao;
import com.yingjun.ssm.dao.OrderDao;
import com.yingjun.ssm.dao.UserDao;
......@@ -30,8 +29,7 @@ public class GoodsServiceImpl implements GoodsService {
private OrderDao orderDao;
@Autowired
private UserDao userDao;
@Autowired
private RedisCache cache;
@Override
public List<Goods> getGoodsList(int offset, int limit) {
......
package com.yingjun.ssm.service.impl;
import com.yingjun.ssm.cache.RedisCache;
import com.yingjun.ssm.dao.UserDao;
import com.yingjun.ssm.entity.User;
import com.yingjun.ssm.service.UserService;
......@@ -17,8 +16,7 @@ public class UserServiceImpl implements UserService {
private final Logger LOG = LoggerFactory.getLogger(this.getClass());
@Autowired
private UserDao userDao;
@Autowired
private RedisCache cache;
@Override
......
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd ">
<task:annotation-driven />
<context:annotation-config />
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
</beans>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册