All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genius.assistant.controller.HelloController Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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