Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 617 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 617 Bytes

jdonmvc

java web framework working on jdon and spring

java example:

public class Controller {

    @In
    private HttpServletRequest request;
    
    @In
    private UserService userService;


    @Path("/blog/:id")
    @GET
    public void show(int id) {
        System.out.println(id);
    }
    
    @Path("/upload")
    @POST
    public void upload(FormFile formFile) {
       
    }
}

groovy example:

@Path("/forum/:id")
void show(int id) {
    println id
}