Skip to content
created by Aha00aAha00a at 2013-06-09
last modified by Aha00aAha00a at 2025-04-16
revision: 39

PlayFramework ver 2.x.x

Web Framework

Scala and Java를 지원.

1. Troubleshooting

  • 모든 리퀘스트가 몇초 간격으로 처리되는 현상. 이를테면 index.html을 가져오는데 2초, 그에 포함된 js, css등 외부 리소스들이 static인데도 2초마다 하나씩 가져와서 매우 느려진다면 프로젝트 시작시 다음 오류가 나는지 확인해 보아야 한다.
    • Error loading library, java.library.path=~~~~~~~~어쩌고저쩌고~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Cannot load the JNotify native library (no jnotify_64bit in java.library.path)
      Play will check file changes for each request, so expect degraded reloading performace.
    • 이 문제는 JNotify의 native dll을 찾지 못한 문제인데, 각 요청(each request)마다 체크할거고, 리로딩 성능이 낮아질거라는 메시지. 역시 에러메시지를 잘 읽어야 한다. 다른 프로젝트들은 왜 안그랬나 확인해 보니 ./target/native_libraries/jnotify_64bit.dll이 존재했으며, 문제가 발생하는 프로젝트에만 없었다.. 우선 수동으로 파일을 구해다가 PATH에 넣어주니 잘 된다. 아 지나간 내 세월이여.. --2019-10-28

2. Using LESS

Using LESS CSS

build.sbt
includeFilter in (Assets, LessKeys.less) := "*.less"
excludeFilter in (Assets, LessKeys.less) := "_*.less"

--2017-02-24

3. Specifying alternative configuration file

https://www.playframework.com/documentation/2.2.x/ProductionConfiguration#specifying-alternative-configuration-file

./stage -Dconfig.resource=prod.conf  # find file in conf dir
./stage -Dconfig.file=conf/dev.conf
./stage -Dconfig.file=/absolute/path/dev.conf
./stage -Dconfig.url=http://example.com/conf/dev.conf

6. See Also

6.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

  • 38.33% PlayFramework2Scala play(12:3), framework2scala(1:2), scala(1:1)
  • 36.37% PlayFramework play(12:12), scala(1:6), java(2:3), for(1:4), web(3:1), framework(2:2), playframework(2:1), 한다(2:1), and(1:2), ver(1:2)
  • 34.41% PlayFramework1 play(12:11), conf(7:3), framework(2:6), file(6:1), web(3:4), playframework(2:5), check(1:6), dev(4:2), pages(2:4), related(2:4)

6.3. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+