How to mix Slick and JDBC in the same Play Framework project?

喜你入骨 提交于 2019-12-14 04:02:01

问题


I'd like to mix regular JDBC into my Play Framework project using Slick. I've ran into a few hurdles. Directly adding the jdbc dependency to my project yields this error from this question

A binding to play.api.db.DBApi was already configured, evolutions and injector error with play-slick

removing the jdbc dependency means I cannot use the play.api.db.Database class and yields this error Play error on startup: No implementation for play.api.db.Database was bound

So how can I use regular jdbc and sql queries without slick in the same project.

来源:https://stackoverflow.com/questions/56907379/how-to-mix-slick-and-jdbc-in-the-same-play-framework-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!