javax.persistence.PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programmatically via registerServer()

GitHub | yangjun | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [ebean]The default EbeanServer has not been defined?

    GitHub | 8 months ago | yangjun
    javax.persistence.PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programmatically via registerServer()

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programmatically via registerServer()

      at com.avaje.ebean.Ebean$ServerManager.getDefaultServer()
    2. avaje-ebeanorm
      Model.db
      1. com.avaje.ebean.Ebean$ServerManager.getDefaultServer(Ebean.java:182)
      2. com.avaje.ebean.Ebean$ServerManager.access$300(Ebean.java:133)
      3. com.avaje.ebean.Ebean.getDefaultServer(Ebean.java:270)
      4. com.avaje.ebean.Model.db(Model.java:154)
      4 frames
    3. org.demo.impl
      UserServiceImpl.lambda$find$0
      1. org.demo.impl.UserServiceImpl.lambda$find$0(UserServiceImpl.java:24)
      1 frame