Spring Native in Action with the Okta Spring Boot Starter
Channel: OktaDev
Date: 2021-09-16

This video is a recording of a live Twitch stream wherein Brian Demers and Matt Raible (from Okta) work with Josh Long (from Spring) to make Okta's Spring Boot starter work with Spring Native.

As of v2.1.1, the Okta Spring Boot starter only requires that you enable HTTPS for it to work with GraalVM! https://developer.okta.com/blog/2021/09/16/spring-native-okta-starter

Table of Contents:

00:00 - Introductions
00:20 - The point of today
05:33 - Reproducing the problem
09:29 - Fixing the code in OktaOAuth2AutoConfig
10:41 - Add proxyBeanMethods = false to @Configuration annotation
21:58 - Who's running the Maven commands?
22:58 - Why doesn't Maven auto-reload pom.xml anymore?
27:30 - Has anyone compared native build times on M1 vs Intel?
28:03 - A brief introduction to Spring Init
29:08 - MissingResourceException: Resource bundle not found
30:02 - Add a @ResourceHint annotation
33:49 - SDKMAN only holds on to the last couple Java versions
35:06 - FileNotFoundException: class path resource does not exist
37:52 - Add @TypeHint for conditional classes
44:36 - Same FileNotFoundException, try adding the parent class and AccessBits.ALL
45:47 - Create Hints JAR while we're waiting
51:50 - We got it working!!
59:33 - Testing with the Hints JAR - FileNotFoundException
01:12:16 - Brian Demers: This is about the time I break down...
01:13:27 - Brian Demers: What is this fuzzy thing?
01:25:35 - Okta CLI Demo
01:27:42 - Brian Demers: Choco?
01:33:29 - SmartSynchronize to the rescue!
01:35:00 - Add @ResourceHints to the Hints JAR
01:39:42 - Brian Demers: Pay your developers!
01:41:32 - It works with external hints!

#SpringBoot #SpringNative #Java
----
Okta is a developer API service that stores user accounts for your web apps, mobile apps, and APIs.

* Sign up for Okta for free at https://developer.okta.com/signup
* For more info visit us at https://developer.okta.com
* Developer Blog: https://developer.okta.com/blog
* Sample Apps on GitHub: https://github.com/oktadev
* Follow us on Twitter: https://twitter.com/oktadev
* Follow us on FB: https://www.facebook.com/oktadevelopers
* Follow us on LinkedIn: https://www.linkedin.com/company/oktadev