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!");
}
没有人有什么想法? 增 编