Skip to content

Instantly share code, notes, and snippets.

@franz-ka
franz-ka / HomeController.java
Created July 22, 2011 15:06
First GAE + Spring MVC
package com.gae.app;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Handles requests for the application home page.
*/
@Controller
public class HomeController {
@franz-ka
franz-ka / Controllers.java
Created July 28, 2011 14:17
First GAE + Spring MVC : Controllers
package com.gae.app;
// ... imports ...
@Controller
public class Controller1 {
@RequestMapping("/", method = RequestMethod.GET, params="miParam=miValor")) //solo si miParam esta
public void hello(@RequestParam("miValor") String unValor) {}
@RequestMapping("/articulos", method = RequestMethod.POST, headers="content-type=text/*")
@franz-ka
franz-ka / gist:1122724
Created August 3, 2011 14:07
Eclipse 3.6 + Maven