試圖在我的項目在播放框架中執行測試?收到錯誤:播放框架測試錯誤
找不到 GET/@測試
*These routes have been tried, in this order :
GET /@documentation/cheatsheet/{category} PlayDocumentation.cheatSheet
GET /@documentation/modules/{module}/files/{name} PlayDocumentation.file
GET /@documentation/modules/{module}/images/{name} PlayDocumentation.image
GET /@documentation/modules/{module}/{id} PlayDocumentation.page
GET /@documentation/files/{name} PlayDocumentation.file
GET /@documentation/images/{name} PlayDocumentation.image
GET /@documentation/{id} PlayDocumentation.page
GET /@documentation/? PlayDocumentation.index
GET / Application.index
GET /favicon.ico 404
GET /public/ staticDir:public
* /{controller}/{action} {controller}.{action}*
關於如何解決此錯誤的任何想法?
我跑了像:
E:\My_Pro\protocms>play test
,然後在瀏覽器http://localhost:9000/@tests
該劇框架工作控制檯顯示:
~ play! 1.2.2, http://www.playframework.org
~ framework ID is test
~
~ Running in test mode
~ Ctrl+C to stop
Listening for transport dt_socket at address: 8000
Module morphia is available (E:\My_Pro\play_framewrk\play-1.2.2\modules\morphia-1.2.3beta1)
You're running Play! in DEV mode
Listening for HTTP on port 9000 (Waiting a first request to start) ...
com.google.code.morphia.logging.MorphiaLoggerFactory chooseLoggerFactory
INFO: LoggerImplFactory set to com.google.code.morphia.logging.jdk.JDKLoggerFactory
17:26:00,906 INFO ~ Connected to jdbc:h2:mem:play;MODE=MYSQL;LOCK_MODE=0
17:26:01,062 INFO ~ MorphiaPlugin-1.2.3beta1> initialized
17:26:01,062 INFO ~ MorphiaPlugin-1.2.3beta1> loaded
17:26:01,125 INFO ~ Application 'ProtoCMS' is now started !
任何一個可以請提出任何可能的解決方案?
在文檔路徑下,您應該在「未找到」對話框中看到測試路徑。您沒有在測試模式下運行。 –