Skip to content

Instantly share code, notes, and snippets.

@joshlong
Created February 5, 2014 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshlong/8822368 to your computer and use it in GitHub Desktop.
Save joshlong/8822368 to your computer and use it in GitHub Desktop.
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String [] args ){
SpringApplication.run( Application.class, args);
}
}
@RestController
class GreetingsRestController {
@RequestMapping("/hi/{name}")
String salute (@PathVariable String name){
return "Hello, " + name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment