diff --git a/IX. ‘How-to’ guides/67.6. Use a custom EntityManagerFactory.md b/IX. ‘How-to’ guides/67.6. Use a custom EntityManagerFactory.md index e69de29..f5626e8 100644 --- a/IX. ‘How-to’ guides/67.6. Use a custom EntityManagerFactory.md +++ b/IX. ‘How-to’ guides/67.6. Use a custom EntityManagerFactory.md @@ -0,0 +1,3 @@ +### 67.6. 使用自定义的EntityManagerFactory + +为了完全控制EntityManagerFactory的配置,你需要添加一个名为`entityManagerFactory`的`@Bean`。Spring Boot自动配置会根据是否存在该类型的bean来关闭它的实体管理器(entity manager)。