com.genius.assistant.controller.HelloController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assistant Show documentation
Show all versions of assistant Show documentation
Back-end development assistant
package com.genius.assistant.controller;
import org.springframework.web.bind.annotation.*;
/**
* @author Genius
*
**/
@RestController
@RequestMapping("/hello")
public class HelloController {
@GetMapping("/helloGet")
public void hello(){
System.out.println("hello");
}
@PostMapping("/helloPost")
public void helloPost(@RequestBody String body){
System.out.println("helloPost");
}
@GetMapping("/helloGet/{id}")
public void helloGetById(@PathVariable("id") String id){
System.out.println("helloGet");
}
@GetMapping("/helloNotRestful")
public void helloNotRestful(@RequestParam("id") String id,@RequestParam("name") String name){
System.out.println("helloNotRestful");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy