The same thing as Spring Initializr, which is familiar as a starter of Spring Boot, is also published in Eclipse Micro Profile, so I will introduce it.
Usability is the same as Spring Initializr.
It is published at the following link.
https://start.microprofile.io/
You can select the version of MicroProfile. This selection determines the types of MicroProfile Runtime and Examples you can choose from.
As a simple example, select MP3.0, Helidon as Runtime and press DOWNLOAD.
You can download the source code as a project with Zip.
The contents of Zip are like this.
It's a Maven project. The readme.md contains the operation check method and links, so you can move while looking at them.
To move quickly
Create a jar with mvn clean package
Run with java -jar target / demo.jar
. Since it is in executable Jar format, it can be executed with one command without following the procedure of starting and deploying the application server.
When executing the command, make sure that the current directory is directly under demo. (In the case of the above example)
After starting, access http: // localhost: 8080
, and if the following screen appears, it is OK.
When you press the link destination,
Hello world is done!
I think I was able to try Micor Profile with about the same number of steps as Spring Boot.
This time, only JAX-RS is included, but you can check other specifications from the source code by increasing the check of Samples.
Also, for those who want to learn JavaEE but find it troublesome to build an application server, MicroProfile incorporates a part of the JavaEE specifications, so it is one of the options as an environment to try the specifications while moving it at hand. I think it's possible.
Recommended Posts