提交 b1969eaa 编写于 作者: Y yingjun

注释完善

上级 e4a7f0c5
package com.yingjun.ssm.cache; package com.yingjun.ssm.cache;
import java.util.List; import com.yingjun.ssm.util.ProtoStuffSerializerUtil;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.connection.RedisConnection; import org.springframework.data.redis.connection.RedisConnection;
...@@ -10,12 +8,13 @@ import org.springframework.data.redis.core.RedisCallback; ...@@ -10,12 +8,13 @@ import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.yingjun.ssm.util.ProtoStuffSerializerUtil; import java.util.List;
import java.util.Set;
/** /**
* redis缓存 * redis缓存
* *
* @author yingjun10627 * @author yingjun
* *
*/ */
@Component @Component
...@@ -124,8 +123,6 @@ public class RedisCache { ...@@ -124,8 +123,6 @@ public class RedisCache {
/** /**
* 清空所有缓存 * 清空所有缓存
*
* @param key
*/ */
public void clearCache() { public void clearCache() {
deleteCacheWithPattern(RedisCache.CAHCENAME+"|*"); deleteCacheWithPattern(RedisCache.CAHCENAME+"|*");
......
package com.yingjun.ssm.dao; package com.yingjun.ssm.dao;
import java.util.List; import com.yingjun.ssm.entity.Order;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import com.yingjun.ssm.entity.Order; import java.util.List;
public interface OrderDao { public interface OrderDao {
/** /**
* 插入订单明细 * 插入订单明细
* *
* @param orderId
* @param userId * @param userId
* @param goodsId
* @return * @return
*/ */
int insertOrder(@Param("userId") long userId,@Param("goodsId") long goodsId, @Param("title")String title); int insertOrder(@Param("userId") long userId,@Param("goodsId") long goodsId, @Param("title")String title);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册