diff --git a/README.md b/README.md index 58148ffb..717d1288 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ HotSwapUtils.hotswapClass(bytes); ``` // 无需自己写sql和任何配置,直接通过注解定义在数据库中定义一张表 -@EntityCache(cacheStrategy = "tenThousand", persister = @Persister("time30s")) +@EntityCache public class UserEntity implements IEntity { @Id private long id; diff --git a/README_EN.md b/README_EN.md index 05a35116..c07d1925 100644 --- a/README_EN.md +++ b/README_EN.md @@ -134,7 +134,7 @@ HotSwapUtils.hotswapClass(bytes); ``` // You don't need to write sql and any configuration yourself, define a table in the database directly through annotation definitions -@EntityCache(cacheStrategy = "tenThousand", persister = @Persister("time30s")) +@EntityCache public class UserEntity implements IEntity { @Id private long id; diff --git a/orm/README.md b/orm/README.md index eda7af2a..9d65ddc0 100644 --- a/orm/README.md +++ b/orm/README.md @@ -56,14 +56,14 @@ var collection = OrmContext.getOrmManager().getCollection(UserEntity.class) - + - + @@ -76,7 +76,7 @@ address表示数据库的地址,支持分片的配置 - 通过注解引入映射 ``` -@EntityCaches(cacheStrategy = "tenThousand", persister = @Persister("time30s")) +@EntityCaches(cacheStrategy = @Cache("tenThousand"), persister = @Persister("time30s")) public class UserEntity implements IEntity { } diff --git a/orm/src/test/resources/application.xml b/orm/src/test/resources/application.xml index bea70030..22aba587 100644 --- a/orm/src/test/resources/application.xml +++ b/orm/src/test/resources/application.xml @@ -35,7 +35,7 @@ - +