SpringBoot: Difference between revisions

From Wiki RB4
Line 1: Line 1:
==Principles==
* SpringBoot Autoconfiguration
==Implementation==
==Implementation==
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.GetMapping;

Revision as of 00:33, 7 February 2021

Principles

  • SpringBoot Autoconfiguration


Implementation

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController 
{
  // @RequestMapping(method=RequestMethod.GET, path="/hello-world")
  @GetMapping(path="/hello-world")

Examples

  • start eclipse
  • File -> Import -> Maven Project