Skip to content

Instantly share code, notes, and snippets.

@sivaprasadreddy
Created September 4, 2014 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sivaprasadreddy/3580575e8887b57f3cf5 to your computer and use it in GitHub Desktop.
Save sivaprasadreddy/3580575e8887b57f3cf5 to your computer and use it in GitHub Desktop.
Hello AngularJS Application.java
package com.sivalabs.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Configuration
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
@Controller
class HomeController
{
@RequestMapping("/")
public String home() {
return "index.html";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment