Advertisement
Guest User

Untitled

a guest
Mar 20th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.56 KB | None | 0 0
  1. /*conf file
  2. db.default.user=postgres
  3. db.default.password=postgres
  4. db.default.driver=org.postgresql.Driver
  5. db.default.url="jdbc:postgresql://localhost:5432/postgres"
  6. */
  7.  
  8. /* build.sbt file
  9.   libraryDependencies ++= Seq(
  10.     "postgresql" % "postgresql" % "9.1-901.jdbc4",
  11.     jdbc
  12.   ),
  13. */
  14.  
  15. /* Application.scala ...what i want to do */
  16. package controllers
  17. import play.api.mvc._
  18. //import play.api.db._ //error
  19.  
  20. object Application extends Controller {
  21.  
  22.   def index = Action {
  23.     Ok(views.html.index("bla"))
  24.     // val ds = DB.getDataSource()
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement