tonglin0325的个人主页

Play学习笔记——Hello World

参考

1
2
https://github.com/lupingqiu/metadata-scala-play

在project文件夹下添加

build.properties

1
2
sbt.version=1.2.1

plugins.sbt

1
2
3
4
5
6
7
8
9
// The Typesafe repository
resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"

// Typesafe snapshots
resolvers += "Typesafe Snapshots" at "https://repo.typesafe.com/typesafe/snapshots/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.12")

运行

1
2
3
sbt
run -Dhttp.port=8080