Intellij idea 使用SBT任务自动停止服务器在IntelliJ IDEA中运行PLay Framework 2.x
我尝试在IntelliJ IDEA中运行Play项目。我明白这一点 这是我的配置api是我的子项目 但当我点击run图标时,我的服务启动成功,并立即停止服务器。然后我在sbt shell中键入Intellij idea 使用SBT任务自动停止服务器在IntelliJ IDEA中运行PLay Framework 2.x,intellij-idea,playframework,sbt,Intellij Idea,Playframework,Sbt,我尝试在IntelliJ IDEA中运行Play项目。我明白这一点 这是我的配置api是我的子项目 但当我点击run图标时,我的服务启动成功,并立即停止服务器。然后我在sbt shell中键入api/run,我的服务成功启动并正常工作。此问题仅在我在配置中选中用户sbt shell时发生 这是我在sbt shell中的日志 "C:\Program Files\Java\jdk1.8.0_251\bin\java.exe" -server -Xmx1536M -Dsbt.sup
api/run
,我的服务成功启动并正常工作。此问题仅在我在配置中选中用户sbt shell时发生
这是我在sbt shell中的日志
"C:\Program Files\Java\jdk1.8.0_251\bin\java.exe" -server -Xmx1536M -Dsbt.supershell=false -Didea.managed=true -Dfile.encoding=UTF-8 -Dsbt.version=1.3.8 -Dsbt.log.noformat=true -jar C:\Users\LAP13556-local\AppData\Roaming\JetBrains\IntelliJIdea2020.1\plugins\Scala\launcher\sbt-launch.jar early(addPluginSbtFile=\"\"\"C:\Users\LAP13556-local\AppData\Local\Temp\idea979.sbt\"\"\") "; set ideaPort in Global := 51722 ; idea-shell"
[info] Loading global plugins from C:\Users\LAP13556-local\.sbt\1.0\plugins
[info] Loading settings for project crm-server-build from plugins.sbt,idea979.sbt ...
[info] Loading project definition from C:\Users\...\crm-server\project
[info] Loading settings for project crm-server from build.sbt ...
[info] Set current project to crm-server (in build file:/C:/Users/.../crm-server/)
[info] Defining Global / ideaPort
[info] The new value will be used by Compile / compile, Test / compile and 3 others.
[info] Run `last` for details.
[info] Reapplying settings...
[info] Set current project to crm-server (in build file:/C:/Users/.../crm-server/)
[IJ]sbt:crm-server> api/run
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the console...)
[info] p.c.s.AkkaHttpServer - Stopping server...
[success] Total time: 26 s, completed Jul 31, 2020 9:26:28 AM
[IJ]sbt:crm-server> api/run // I type this command
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the console...)
谁能告诉我原因吗。多谢各位