oojdon的jdonmvc的demo訪問根目錄報錯了,有經驗的來解答下什麼情況

tecentIDE26FC發表於2015-03-04
com.jdon.mvc.rs.InvalidResourceException: can't find resource for:[/] by http verb[get]please check your resource design!

import com.jdon.mvc.annotations.In;
import com.jdon.mvc.annotations.Path;
import com.jdon.mvc.http.FormFile;
import com.jdon.mvc.http.RequestBody;
import com.jdon.mvc.represent.Html;
import com.jdon.mvc.represent.Json;
import com.jdon.mvc.represent.Represent;

public class TestController {

private static DB db = new DB();

@In
private RequestBody body;

@Path("/")
public Represent index() {
return new Html("index");
}

相關文章