$30 off During Our Annual Pro Sale. View Details »

Spring Boot 3 & Spring Framework 6

Spring Boot 3 & Spring Framework 6

Oliver Drotbohm

November 08, 2022
Tweet

More Decks by Oliver Drotbohm

Other Decks in Programming

Transcript

  1. Spring Boot 3 & Spring Framework 6 Oliver Drotbohm odrotbohm@vmware.com

    / odrotbohm
  2. None
  3. Spring Framework Project Reactor Micrometer Spring Boot Spring Security Spring

    Data … Spring Integration
  4. May '22 Nov '22

  5. Spring Boot • Improvements to actuator endpoints OS and Java

    vendor information • Spring GraphQL starter Starter for server and client support • Infrastructure upgrades H2 2.1 • Auto-configuration infrastructure Dedicated config file, @AutoConfiguration • @JsonMixin
  6. Spring Boot • JakartaEE 9 Required temporarily removing support Some

    third party libraries not ready yet
  7. javax.* -" jakarta.*

  8. Use Spring Boot Migrator!

  9. None
  10. None
  11. None
  12. Spring Boot • JakartaEE 9 Required temporarily removing support Some

    third party libraries not ready yet • Declarative HTTP Client Interface-based, similar to Spring Cloud Feign
  13. public interface DeclarativeWebClient { @GetExchange("/spring-projects/{slug}") ProjectSummary findProject(@PathVariable String slug); }

  14. Spring Boot • JakartaEE 9 Required temporarily removing support Some

    third party libraries not ready yet • Declarative HTTP Client Interface-based, similar to Spring Cloud Feign • Support for RFC 7807 – Problem Details for HTTP APIs Supersedes support previously available in Spring HATEOAS
  15. None
  16. None
  17. HTTP/1.1 403 Forbidden Content-Type: application/problem+json Content-Language: en { "type": "https://example.com/probs/out-of-credit",

    "title": "You do not have enough credit.", "detail": "Your current balance is 30, but that costs 50.", "instance": "/account/12345/msgs/abc", "balance": 30, "accounts": ["/account/12345", "/account/67890"] }
  18. Spring Boot • Improved observability support Portfolio projects instrumented with

    Micrometer • Native native story Spring Native folded into the portfolio projects
  19. Spring Native

  20. JVM AOT Native Image Runtime Build time Build time +

    GraalVM Native Images
  21. JVM AOT Native Image Spring Native Spring Boot

  22. JVM AOT Native Image Spring Native Spring Boot Spring Framework,

    Boot, ecosystem projects…
  23. https://github.com/odrotbohm/spring-restbucks DEMO

  24. Summary

  25. Spring Boot Spring Framework ETA May Nov Support (commerial) Nov

    Feb Nov Feb Java / / JavaEE / JakartaEE / Jakarta Namespace javax.… jakarta.… Native support Spring Native built in
  26. Questions? ! Oliver Drotbohm odrotbohm@vmware.com / odrotbohm