New answers tagged java-21
0
votes
Java 21 Support for Spring Boot 2.7
At my work place, I recently moved the spring boot 2.7.0 application running on Java 17 to spring boot 2.7.17 over JDK 21. So, yes, spring boot 2.7 does support JDK 21.
Best practices
0
votes
0
replies
0
views
Replace parallelStream() with Executor
For the sake of precision, costly as long as we are talking platform threads (classic Java Thread objects). Which we probably are here, and which newFixedThreadPool() uses. (Virtual threads are cheap ...
Best practices
1
vote
0
replies
0
views
Replace parallelStream() with Executor
+2 for caching. Creating and destroying an executor service involves creating and destroying threads. That is costly. You should avoid doing it repeatedly.
Best practices
0
votes
0
replies
0
views
Replace parallelStream() with Executor
In the 2nd code fragment, the field should be private (obviously). The more important issue is whether the field should be static.
There is no "best practice" for this. Rather there are ...
Best practices
2
votes
0
replies
0
views
Replace parallelStream() with Executor
Always cache your executor service for reuse. NewFixedThreadPool() is a good place to start. But dont forget to cleanup and shutdown the executor service when you are really done with it
0
votes
oracle.jdbc.driver.OracleConnection from JBOSS EAP 8 datasource
you should use oracle.jdbc.OracleConnection instead of oracle.jdbc.driver.OracleConnection.
Top 50 recent answers are included
Related Tags
java-21 × 302java × 177
spring-boot × 70
virtual-threads × 39
maven × 21
spring × 20
spring-boot-3 × 16
intellij-idea × 14
gradle × 10
project-loom × 10
multithreading × 8
java-17 × 7
eclipse × 6
spring-mvc × 6
javafx × 6
java-8 × 6
tomcat × 5
concurrency × 5
pattern-matching × 5
quarkus × 5
structured-concurrency × 5
android × 4
docker × 4
spring-security × 4
jboss × 4