r/java • u/rieckpil • Mar 24 '23
Happy 19th Birthday Spring π₯³
Spring Framework 1.0 was released on the 24th of March 2004 https://spring.io/blog/2004/03/24/spring-framework-1-0-final-released
r/java • u/rieckpil • Mar 24 '23
Spring Framework 1.0 was released on the 24th of March 2004 https://spring.io/blog/2004/03/24/spring-framework-1-0-final-released
r/java • u/javinpaul • Feb 06 '13
r/java • u/c00liu5 • Jan 25 '24
Hey folks, you might remember my post from two weeks ago about my app CodeBrew, a Java IDE for iPad. I took your feedback to heart and removed the subscription in favor of a single purchase full version. I have always seen subscription based models as a cash grab kind of thing and I am very happy with my decision (although Apple as always gave me a hard time in their review process).
r/java • u/BitBird- • Jan 12 '26
I avoided var for years because I thought it made code less readable. Tried it last week and I'm a convert.
Instead of:
Map<String, List<CustomerRecord>> customersByRegion = new HashMap<>();
Just:
var customersByRegion = new HashMap<String, List<CustomerRecord>>();
The type is right there in the initialization. Your IDE still knows what it is. It's not like JavaScript where var means something totally different.
Really shines with streams and complex generics where you'd normally write the type twice for no reason. Also makes refactoring easier since you're not updating the type in two places.
Still feels weird after typing out full declarations for 10+ years but I get it now.
r/java • u/Active-Fuel-49 • Oct 12 '24
r/java • u/Legitimate-Front7370 • Sep 11 '24
Recently, our team updated our Spring Boot service to Java 21 for a project. Since we had already updated to Java 17 with Spring Boot 3.x version, the update to Java 21 was completed very easily, except for some issues with test cases.
However, a very significant change was observed in the memory usage of the service deployed on EKS. The heap memory usage decreased by nearly 50%, and native memory usage reduced by about 30%. We conservatively maintained the existing G1GC for garbage collection, yet the usage still decreased. After monitoring, we plan to halve the requested memory capacity within Docker.
Apart from this, CPU usage remained within the margin of error (we weren't using CPU close to the limit anyway). However, the minor GC count increased significantly.
We believe these effects are due to the preventive G1GC garbage collection patch introduced in Java 20.
We're curious if others have experienced similar changes when updating to Java 21 compared to previous versions.ββββββββββββββββ
r/java • u/marbehl • Apr 06 '20
r/java • u/lbkulinski • Jul 18 '17
r/java • u/iamjessew • Aug 14 '20
r/java • u/Korges • Jun 26 '24
Hello,
Top 5-10 books picks for senior Java Developer should read? Algorithms, system design, architecture, mindset, financial area. Everthing that is related.
I read:
Clean Code
Clean Architecture
Effective Java (Bloch)
Designing Data-Intensive Applications
r/java • u/kingroka • Sep 03 '21
r/java • u/pron98 • Oct 30 '19
r/java • u/vladmihalceacom • Sep 30 '22
r/java • u/Patresss • Aug 12 '21
Hi, I often hear that Spring is some kind of magic and there is no way to know how it works underneath. Probably many people know why annotations like @Transactional do not work in private methods and when called from the same bean. However, probably not everyone knows why this happens.
That is why I decided to write my own framework based on Spring from scratch. If you are a beginner I recommend you clone the repository, open a specific step as a package e.g. code - step 1, and read the readme at the same time with a description of the step.
If you are more advanced or you are only interested in the end result then everything is in step 7.
The framework includes dependency injection, @Transactional, and @Cacheable annotations.
The project: https://github.com/Patresss/Java-Own-Framework---step-by-step