摘要:
使用Spring缓存的简单Demo 1. 首先创建Maven工程,在Pom中配置 2. 创建Student类和StudentServer 类 StudentServer 注意:getStudent方法要定义为Public才能使用缓存。 有条件的缓存 condition = "#id < 2",表示只 阅读全文
posted @ 2016-09-21 19:45 work hard work smart 阅读(1019) 评论(0) 推荐(1)
|
|||
|
摘要:
使用Spring缓存的简单Demo 1. 首先创建Maven工程,在Pom中配置 2. 创建Student类和StudentServer 类 StudentServer 注意:getStudent方法要定义为Public才能使用缓存。 有条件的缓存 condition = "#id < 2",表示只 阅读全文
posted @ 2016-09-21 19:45 work hard work smart 阅读(1019) 评论(0) 推荐(1) |
|||