问题重现步骤:
1:在window环境下运行ok,EG:192.168.0.207:9091/insert?id=1 SUCCESS
2:打开DOS WINDOWS,在工程路径下:sbt->dist 生成目录
rserver/bin ;rserver/config;rserver/lib;rserver/deploy
3:把all目录放到linux环境
下 4:我写了一个xshell(run.sh)来运行项目(它包含akka.kernel.Main类)
5:./ run.sh start ,console message is
Starting Akka...
Running Akka 2.0.3
Deploying file:/opt/playmini/deploy/cti-kernel-1.0.0.jar
=========start=== =record=============(见此处)启动 CtiKernel
Play 服务器进程 ID 为 8084
[info] play - 应用程序已启动(产品)
[info] play - 在 /0:0:0:0:0:0:0:0:9091 上监听 HTTP
成功启动 Akka
对象 RecordApp 扩展应用程序 {
System.setProperty("http.port","9091")
System.setProperty("pidfile.path","/opt/pid")
val system = ActorSystem("RecordSystem")
val log = Logging.getLogger(RecordApp.system,this)
println("=========start====record=============")
def route = {
case GET(Path("/insert")) & QueryString(qs) => Action{ request =>
//val tenantId = QueryString(qs,"id").getOrElse(0)
println("context:" + request.contentType)
Ok("Pong1 @ %s\n".format(System.currentTimeMillis))
}
...
6:but 192.168.0.207:9091/insert?id=1 respose Action not found For request 'GET /insert?id=1'
请告诉我为什么