我有一个关于playframwork2.6 + sbt + java如何使用sbt的问题。我尝试了两种方法。但失败了方法1:在build.sbt中添加Java选项
javaOptions += "-Dcom.sun.management.jmxremote=true"
javaOptions += "-Dcom.sun.management.jmxremote.port=9005"
javaOptions += "-Dcom.sun.management.jmxremote.rmi.port=9006"
javaOptions += "-Dcom.sun.management.jmxremote.local.only=false "
javaOptions += "-Dcom.sun.management.jmxremote.ssl=false"
javaOptions += "-Dcom.sun.management.jmxremote.authenticate=false"
javaOptions += "-Djava.rmi.server.hostname=localhost"
但是9006和9006不起作用方法2:使用sbt运行项目时,在类似于>>的命令中添加这些参数
sbt "-Dcom.sun.management.jmxremote=true" "-Djava.rmi.server.hostname=localhost" "-Dcom.sun.management.jmxremote.rmi.port=9005" "-Dcom.sun.management.jmxremote.port=9006" "-Dcom.sun.management.jmxremote.ssl=false" "-Dcom.sun.management.jmxremote.authenticate=false" ~run
仍然无法正常工作。有人对此有经验吗?非常感谢你
我有一个关于playframwork2.6 + sbt + java如何使用sbt的问题。我尝试了两种方法。但是方法1失败了:在build.sbt中添加java选项javaOptions + =“ -Dcom.sun.management.jmxremote = ...
您需要使用bin/activator
而不是sbt
命令