Commits

Martin Lau  committed bef8c64

Added explicit @RenderMapping on controller method. Not necessary - but I prefer being explicit.

  • Participants
  • Parent commits bacc05c

Comments (0)

Files changed (1)

File src/main/java/ph/hum/sample/basic/controller/BasicController.java

 import org.springframework.web.bind.annotation.ModelAttribute;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.portlet.bind.annotation.RenderMapping;
 
 import java.util.Date;
 
         return new Date(currentTimeMillis() + offset);
     }
 
+    @RenderMapping
     @RequestMapping("VIEW")
     public String renderView() {
         return "basic/view.jspx";