【发布时间】:2016-11-24 13:39:58
【问题描述】:
EBean 是一个无状态的 ORM。 http://ebean-orm.github.io/
EBean 提供了一个 Spring Boot 工件。 http://ebean-orm.github.io/docs/setup/spring#spring-boot https://github.com/ebean-orm/avaje-ebeanorm-spring
但是那种情况下EBean直接读取jdbc连接详情,如下。
ebean.db.ddl.generate=true
ebean.db.ddl.run=true
datasource.db.username=sa
datasource.db.password=
datasource.db.databaseUrl=jdbc:h2:mem:tests
datasource.db.databaseDriver=org.h2.Driver
我想通过 Spring Boot 和 EBean 来利用我现有的 HikariCP 数据源。
我们如何做到这一点?
【问题讨论】:
-
像往常一样手动配置即可。
-
我不明白如何将 HikariCP 与 EBean 集成。我是新手。因此问题。
标签: java spring spring-boot ebean hikaricp