Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance for Spring Boot 3.0 GA update #60

Open
sdeleuze opened this issue Nov 22, 2022 · 1 comment
Open

Guidance for Spring Boot 3.0 GA update #60

sdeleuze opened this issue Nov 22, 2022 · 1 comment

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Nov 22, 2022

Hey @mraible,

As we are about to release Spring Boot 3.0 GA, I would like to share some feedback on the Spring Boot 3 sample.

For an optimized footprint, I still recommend using the tomcat-embed-programmatic artifact with Spring Boot 3 that I contributed via #12, any chance you could you restore this optimization and related documentation in your next run? That will also avoid you to be impacted by apache/tomcat#569 expected to be fixed only in Tomcat 10.1.3 (to be probably shipped with Spring Boot 3.0.1)

This additional Buildpacks configuration is not needed anymore.

We discovered a huge memory consumption issue in Jackson 2.14, it should be fixed in Spring Boot 3 GA via FasterXML/jackson-databind#3665. We did also several optimizations in Spring Framework 6.0.1 which will be used in Spring Boot 3 GA.

This one has a smaller impact, but you can change @SpringBootApplication to @SpringBootApplication(proxyBeanMethods = false) since that will totally skip proxies even if they are now created at build-time.
https://github.com/oktadev/native-java-examples/blob/main/spring-boot/src/main/java/com/okta/rest/Application.java#L6

Spring Boot 3 GA should be released this Thursday, Nov 24th.

@mraible
Copy link

mraible commented Dec 10, 2022

Thank you for this advice @sdeleuze! If you'd like to create a PR for the spring-boot app, I'd be happy to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants