English 中文(简体)
游乐框架路线问题
原标题:Play framework router issue in tomcat

I m having trouble getting my @Get annotations to work in Tomcat. I m only having this issue when deploying the actual WAR file to my Tomcat prod server but everything works when I run it using play run

http://localhost:8080/test/hello/world/ -- routes -- WORKS
GET     /hello/world/?                   Foo.greet

http://localhost:8080/test/hello/john/ -- annotated using router -- DOESN T WORK
@Get("/hello/john/?")
public static void greet() {
 System.out.println("Hello!");
}

没有人有什么想法? 增 编

问题回答

我猜测你正在使用一个模块

如果你使用先前连接的单元一,你的最佳机会是为其开一份标报告here,以便提交人能够发送。

我还愿建议使用routes<>/em>文档。 从设计的角度来看,它偏离了编码的路线,从设计的角度来看,这在重新构造和前<>。 它还允许进行一些额外的trick计(因为它接受流动控制结构),而使用说明可能更难以吸引。





相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...