Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreHi, Spring fans! Welcome to another installment of This Week in Spring! As usual, we've got a ton of stuff to get to so let's dive right in!
native-image facility turn your dynamic Java code into a lightning fast, super lightweight, machine architecture-specific binary that you'll definitely want to invite to your next Docker container party. Tons of stuff just works out of the box. Native compilation is even supported on the Spring Initializr - just add Native to the selections! You can use @NativeHint annotations to register certain classes for proxying, reflection, etc. Or, you can implement NativeConfiguration to dynamically register things at compile time. Make sure that you add the .jar containing the NativeConfiguration class to the META-INF/services/ service loader entry for classes of type NativeConfiguration and then add that .jar to the spring-aot Maven plugin's classpath. You can easily build your native image and export a container using Spring Boot's buildpack support: mvn spring-boot:build-image. You'll find tons of samples supporting its use in the repository, too!instanceof pattern matching and record types (record Customer(Integer id, String name) {} ) work out of the box in Java! Congrats to the Java team and, of course, you can expect good support for Java 16 in Spring Boot to land sooner rather than later.ossu/computer-science - that offers a path to a free self-taught education in Computer Science!