Table of contents
Project Examples
Type Handlers
Tid-Bits
Copy Object
public class Copy {
ObjectCopier objectCopier = ObjectCopier.New();
Customer customer = root.getCustomer(id);
Customer customerCopy = objectCopier.copy(customer);
}
Running
./gradlew run
*** Use in build.gradle to run in dev ***
run {
systemProperty('micronaut.environments', 'dev')
}
GUI
add to
build.gradle
developmentOnly("io.micronaut.microstream:micronaut-microstream-rest")
add to
application.yml
microstream:
rest:
enabled: true
Run downloadable jar
java -jar microstream-storage-restclient-app-08.01.02-MS-GA.jar --server.port=8888
Then just open http://localhost:8888 in your browser, select the base URL of the REST service and click connect.
Lombok
*** Needs to be above micronaut annotations on classpath ***
*** For lombok to recognize micronaut annotations and inject into constructor ***
*** For lombok to recognize micronaut annotations and inject into constructor ***
create
lombok.config
atroot
insert line:
lombok.copyableannotations += io.micronaut.core.annotation.Nullable
GraalVM
Configuration
To run with GraalVM add:
reflect-config.json to
/src/main/resources/META-INF/native-image/[package]
soGraal
recognizes imported classes that need to be reflective
touch /src/main/resources/META-INF/native-image/com/ssi/reflect-config.json
Create native image
./gradlew nativeCompile
Run Native Image in Dev
./build/native/nativeCompile/graal-vm-ssi -Dmicronaut.environments=dev
Resources
Micronaut 3.7.2 Documentation
User Guide
API Reference
Configuration Reference
Micronaut Guides
Gradle
Shadow Gradle Plugin
Gradle plugin for GraalVM Native Image building : Config Doc
Gradle Plugin for Micronaut : io.micronaut.graalvm
GraalVM
Micronaut Docs: GraalVM
GraalVM Docs : Reflection
reflect-config.json Graal SourceCode
Microstream documentation
Micronaut MicroStream documentation
https://microstream.one/
Microstream-REST documentation
Micronaut MicroStream REST documentation
https://docs.microstream.one/manual/storage/rest-interface/index.html
HTTP-client documentation
Micronaut HTTP Client documentation
Security-JWT documentation
Micronaut Security JWT documentation
Resources
Micronaut Documentation
GraalVM
- Micronaut Docs: GraalVM
- Gradle plugin for GraalVM Native Image building : Config Doc
- Gradle Plugin for Micronaut : io.micronaut.graalvm
- GraalVM Docs : Reflection
- reflect-config.json Graal SourceCode
Microstream documentation
Microstream-REST documentation
- Micronaut MicroStream REST documentation
- https://docs.microstream.one/manual/storage/rest-interface/index.html