Skip to content

Ech0Fan/esa-restlight

 
 

Repository files navigation

Restlight

Build codecov Maven Central GitHub license

Restlight is a light and rest-oriented web framework.

Quick Start

Create a Spring Boot application and add dependency

<dependency>
	<groupId>com.github.esastack</groupId>
	<artifactId>restlight-starter</artifactId>
	<version>${mvn.version}</version>
</dependency>

Write Controller

@RestController
@SpringBootApplication
public class RestlightDemoApplication {

    @GetMapping("/hello")
    public String hello() {
        return "Hello Restlight!";
    }

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

Run your application and then you would see something like

Started Restlight server in 1265 millis on 0.0.0.0:8080

curl http://localhost:8080/hello

About

A light and rest-oriented web framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%