Skip to content
Snippets Groups Projects
Select Git revision
  • e5e17dfe7971615df7540c6e320117d1070dd2c6
  • master default protected
  • devops
  • deeksha
4 results

GradleProjectApplication.java

Blame
  • GradleProjectApplication.java 658 B
    package com.example.gradleproject;
    
    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    import org.springframework.web.bind.annotation.GetMapping;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    @SpringBootApplication
    public class GradleProjectApplication {
    
    	public static void main(String[] args) {
    		SpringApplication.run(GradleProjectApplication.class, args);
    	}
    
    }
    @RestController
    @RequestMapping("/")
    class HelloController {
    	@GetMapping("/hello")
    	public String hello() {
    		return "Hello, World!";
    	}
    }