Me testing out micronaut 1.2.3 as a alternative to Spring Boot for lightweight services.
The focus is to evaluate if ...
- I can setup a modern microservice with typical requirements.
- I can solve the typical problems that I already have a solution for in Spring Boot.
- bootstrap new projects easily
- install
mn
cli, e.g. withskdman
; then runmn create-app your-app-name
- install
- build with Maven
--build maven
flag formn
- json support
- works out-of-the-box with Jackson
- logging
- works out-of-the-box with logback
- assertj assertions
- newest version works
- lombok
- more requirements tbd
- integration tests for rest endpoints (mockMvc style)
- minimal solution with micronaut HttpClient (out-of-the-box)
- use
rest-assured
without mockmvc? (provides a convenient DSL & jsonpath matching but has a hamcrest dependency) - both solutions require you to handle rollback/cleanup after calling endpoints that write data
- more problems tbd