This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters