Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*conf file
- db.default.user=postgres
- db.default.password=postgres
- db.default.driver=org.postgresql.Driver
- db.default.url="jdbc:postgresql://localhost:5432/postgres"
- */
- /* build.sbt file
- libraryDependencies ++= Seq(
- "postgresql" % "postgresql" % "9.1-901.jdbc4",
- jdbc
- ),
- */
- /* Application.scala ...what i want to do */
- package controllers
- import play.api.mvc._
- //import play.api.db._ //error
- object Application extends Controller {
- def index = Action {
- Ok(views.html.index("bla"))
- // val ds = DB.getDataSource()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement