2
-Dconfig.file 플래그를 사용하여 Play 서버가 다른 application.conf 파일을 사용할 수 있음을 알고 있습니다.다른 경로 파일을 사용하기 위해 Play Framework를 지정하는 방법
다른 경로 파일을 사용하기 위해 서버를 지정하는 방법이 있습니까?
-Dconfig.file 플래그를 사용하여 Play 서버가 다른 application.conf 파일을 사용할 수 있음을 알고 있습니다.다른 경로 파일을 사용하기 위해 Play Framework를 지정하는 방법
다른 경로 파일을 사용하기 위해 서버를 지정하는 방법이 있습니까?
당신은 당신의 application.conf에서 설정 또는 JVM 플래그 경로 파일 그냥 application.conf 수있는 것처럼, 다른 경로의 파일이 포함되어 수
-Dapplication.router=my.application.Routes
# Router
# ~~~~~
# Define the Router object to use for this application.
# This router will be looked up first when the application is starting up,
# so make sure this is the entry point.
# Furthermore, it's assumed your route file is named properly.
# So for an application router like `conf/my.application.Router`,
# you may need to define a router file `my.application.routes`.
# Default to Routes in the root package (and `conf/routes`)
# application.router=my.application.Routes
를 사용할 수 있습니까? – zzhang
예 실제 사례는 https://github.com/beligum에 있으며 http://www.playframework.com/documentation/2.2.x/SBTSubProjects "경로 파일 분할"을 참조하십시오. – Schleichardt