From a8eb3522841c5f7d42128484e81129edfce10f28 Mon Sep 17 00:00:00 2001 From: godotg Date: Mon, 17 Oct 2022 17:43:25 +0800 Subject: [PATCH] doc[zfoo]: update doc --- README.md | 2 +- README_EN.md | 2 +- orm/README.md | 6 +++--- orm/src/test/resources/application.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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 @@ - +