Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

helloworld-devtool

pom.xml

4.0.0com.candidjava.spring.boot
	helloworld
	0.0.1-SNAPSHOThelloworld-dev-toolhttp://maven.apache.orgorg.springframework.boot
		spring-boot-starter-parent
		2.0.4.RELEASEUTF-81.8org.springframework.boot
			spring-boot-starter-web
		org.springframework.boot
			spring-boot-devtools
			trueorg.springframework.boot
				spring-boot-maven-plugin
			

Example.java

package com.candidjava.spring.boot.helloworld;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class Example {

 @RequestMapping("/")
 String home() {
  return "Hello candid welcome";
 }

 public static void main(String[] args) throws Exception {
  SpringApplication.run(Example.class, args);
 }

}


This post first appeared on Core Java,Servlet,Jsp,Struts,Hibernate,Spring Fram, please read the originial post: here

Share the post

helloworld-devtool

×

Subscribe to Core Java,servlet,jsp,struts,hibernate,spring Fram

Get updates delivered right to your inbox!

Thank you for your subscription

×