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

org.octopus.app.HelloWorldController Maven / Gradle / Ivy

There is a newer version: 2.2.27
Show newest version
package org.octopus.app;

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

@RestController()
@RequestMapping("/hello")
public class HelloWorldController {
    @GetMapping
    public String helloWorld() {
        return "Hello world";
    }

    @PostMapping
    public String unCovered() {
        return "Uncovered method";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy