Skip to content

Preface

For Java developers, Micronaut is a relatedly new framework. It provides more concise APIs to building modern cloud-native applications.

I have used Spring Boot in numerous real-world projects. In my opinion, there is no press when switching to Micronaut. When exploring the Micronaut features in this tutorial, I am trying to introduce them from the view of a Spring Boot developer.

Audience

I assume you are already a Java developer and know some knowledge of Spring framework and at least used one of the popular Dependency injection frameworks, eg. Spring, Guice, or Weld, or know well about the JSR 330 specification(aka Dependency Inject specification).

I am trying to use the latest Java 17 language syntax in the sample codes. Please update yourself if you are using a lower-versioned Java.

Besides Java, to demonstrate Micronaut polyglot feature, some example codes are written in Kotlin and Kotlin Coroutines, even Groovy and Scala in future.

Sample Codes

All sample codes of this tutorial are available on Github. Get a copy of the source codes, and explore them yourself.

In short, you can clone the project from Github via GIT command line.

$ git clone https://github.com/hantsy/micronaut-sandbox

Contribution

Any contributions are welcome. You can file an issue or send a PR on Github. If my work is helpful, please help me to spread it out to your circles or buy me a coffee.:)

About Me

My name is Hantsy, an independent freelancer from China, I have over 20 years of software engineering experience. If you need some development and technical consulting service, please drop me an email, my email address is hantsy@gmail.com.

Enjoy reading!


Last update: 2022-03-06