Skip to content

Instantly share code, notes, and snippets.

@dherges
Created October 16, 2016 19:24
Show Gist options
  • Save dherges/f033804afdf60fd8e97a6a1dfb76ecc9 to your computer and use it in GitHub Desktop.
Save dherges/f033804afdf60fd8e97a6a1dfb76ecc9 to your computer and use it in GitHub Desktop.
spring-cucumber
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class HelloController {
public String welcomeMessage = "Hello again!";
@RequestMapping("hello")
@ResponseBody
public String helloAgain() {
return welcomeMessage;
}
}
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TwitterApp {
public static void main(String[] args) {
SpringApplication.run(TwitterApp.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment