DB Plugin is not registered in Play 2.0

前端 未结 2 704
灰色年华
灰色年华 2021-01-17 19:18

I just started working with play, and I modified the way I\'m doing a SQL read and I\'m now getting the following error:

[Exception: DB plugin is not registe         


        
2条回答
  •  失恋的感觉
    2021-01-17 19:37

    Just make sure you provide the database configuration. For example, if you are using Play Framework's tutorial, uncomment this section.

    # Database configuration
    # ~~~~~ 
    # You can declare as many datasources as you want.
    # By convention, the default datasource is named `default`
    #
    # db.default.driver=org.h2.Driver
    # db.default.url="jdbc:h2:mem:play"
    # db.default.user=sa
    # db.default.password=""**
    

    For more information, see Play Framework Database Configuration

提交回复
热议问题