Learn extra at:
Micronaut appears lots like Spring for routes, nevertheless it has totally different methods up its sleeve. This instance highlights Micronaut’s ahead-of-time (AOT) compilation for quick startups:
import io.micronaut.http.MediaType;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.micronaut.http.annotation.Produces;
@Controller("/good day")
public class HelloController {
@Get(produces = MediaType.TEXT_PLAIN)
public String index() {
return "Hiya, InfoWorld from Micronaut!";
}
}
Quarkus
Like Micronaut, Quarkus focuses on cloud-native improvement. Quarkus is extra of an opinionated-style framework, with robust command-line interface (CLI) assist for devmode and container-aware packaging. Certainly one of Quarkus’ strengths is in streamlining and empowering the command-line expertise. Right here, we use it to create a brand new utility and run it in hot-swap devmode:
# New Quarkus venture with the RESTEasy extension
mvn io.quarkus.platform:quarkus-maven-plugin:2.16.0.Closing:create
-DprojectGroupId=org.acme
-DprojectArtifactId=my-quarkus-app
-Dextensions="resteasy"
cd my-quarkus-app
# Run the appliance in dev mode
./mvnw compile quarkus:dev
--
Assessments paused
Press [e] to edit command line args (at present ''), [r] to renew testing, [o] Toggle check output, [:] for the terminal, [h] for extra choices>
JHipster
JHipster is presumably probably the most expansive and impressive framework on this checklist. It covers an unlimited vary of flexibility together with each SQL and NoSQL back-end datastores, all inside the Java and JVM ecosystem.