2012-01-21 31 views
3

私はapplication.confのhttp.pathプロパティを使用して、別のパスから再生アプリケーションを提供しています。私はhttp://localhost:9000/sales/にアクセスしようとするので、アプリケーションのconfに、私はplay framework - 既存のルートでエラーが見つかりません

http.path = /販売/

、私は次のエラーを取得していています。

 
Not found 

GET /sales/ 

These routes have been tried, in this order : 

    1. GET  /@documentation/cheatsheet/{category}    PlayDocumentation.cheatSheet 
    2. GET  /@documentation/modules/{module}/files/{name}  PlayDocumentation.file 
    3. GET  /@documentation/modules/{module}/images/{name} PlayDocumentation.image 
    4. GET  /@documentation/modules/{module}/{id}    PlayDocumentation.page 
    5. GET  /@documentation/files/{name}      PlayDocumentation.file 
    6. GET  /@documentation/images/{name}      PlayDocumentation.image 
    7. GET  /@documentation/{id}        PlayDocumentation.page 
    8. GET  /@documentation/?         PlayDocumentation.index 
    9. *   /sales/           Application.index 
    10. GET  /sales/login         Secure.login 
    11. POST  /sales/login         Secure.authenticate 
    12. GET  /sales/logout        Secure.logout 

は:私のroutesファイルでは、私が '/販売' でルートを付加していません。それは自動的に各ルートに追加されます。

「/ sales /」経路がなぜ認識されないのかわかりません。私がルート '/ sales/login'または他のルートを与えるなら、それは動作します。

追加情報:セキュリティモジュールでは、2つの場所を変更して、デフォルトURLを「/」ではなく「/ sales /」に設定しました。

変化が

flash.put( "URL"、play.Play.configuration.get( "http.path"))です。 (URL)。

答えて

2

http.path=/sales 
+0

グレートを設定http.pathから最後のスラッシュを削除します!できます。ありがとう。 – Steve

+1

ありがとう!たくさん助けてくれました。特にドキュメントがスラッシュの場合は... http://www.playframework.org/documentation/1.2.4/configuration – CoPLaS

関連する問題