Java

1384 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 1 year ago
MODERATORS
26
48
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/java
27
28
 
 

I teach a course in java and springboot for beginners. I would like to walk my students through the code of a real world java or springboot application. Can anyone recommend a good example?

29
1
submitted 6 months ago by agilob to c/java
30
 
 

https://lemm.ee/post/29785400

So I'm making a project in SpringBoot with Oauth security.

If I use Auth0 as my Authorization Server, I can register an application there and just say that I want user to be able to login with Google an Facebook. That's all it takes.

If I use Keycloak as my Authorization Server, I can also have users choose Google or Facebook as there prefered login, but in order to provide that, I have to register my app with Google and Facebook first.

So how come it's so easy with Auth0 and a little less easy with Keycloak? Is it a contract thing, does Auth0 have contracts with all these providers or something?

31
3
submitted 7 months ago by LadyLeeLoosh to c/java
32
33
1
submitted 7 months ago by mac to c/java
34
35
36
 
 

In this blog post, we will explore how to detect and prevent these anti-patterns using pair programming, code reviews, and observability.

37
38
 
 

cross-posted from: https://programming.dev/post/11703178

In this article, we’ll examine cache misses and, in general, learn about the caching concept and how to implement it in Spring Boot.

39
24
JDK 22 released (openjdk.org)
submitted 8 months ago by lysdexic to c/java
40
 
 

“An issue introduced by macOS 14.4, which causes Java process to terminate unexpectedly, is affecting all Java versions from Java 8 to the early access builds of JDK 22. There is no workaround available, and since there is no easy way to revert a macOS update, affected users might be unable to return to a stable configuration unless they have a complete backup of their systems prior to the OS update.”

41
42
4
submitted 8 months ago by agilob to c/java
43
8
submitted 8 months ago by agilob to c/java
44
5
Async File IO (concurrencydeepdives.com)
submitted 8 months ago by agilob to c/java
45
19
submitted 8 months ago by costalfy to c/java
 
 

Let's write a GitHub Crawler and let's throw in everything Java (21) has to offer:

virtual threads and structured concurrency,
pattern matching and data-oriented programming,
type inference, records, and sealed types,
text blocks and template strings,
a modern HTTP client and improved collections,
modules and OS-specific binaries.

The end result will look very different from just a few years ago, let alone 10. This is not your dad's Java!

46
 
 

cross-posted from: https://programming.dev/post/10707322

cross-posted from: https://programming.dev/post/10707319

In this article, we want to share our experience with fellow developers and offer insights using real-life examples on how to identify and optimize slow SQL queries, especially when working with relational database management systems like PostgreSQL, MySQL, MSSQL, Oracle, etc.

47
8
Bootstrap Themed Maven Site (stevecrox.github.io)
submitted 8 months ago by [email protected] to c/java
 
 

I find Maven sites look incredibly dated and I couldn't find a nice way to integrate other auto documentation tools such as MKDocs.

So I've written a series of Apache Velocity templates which integrate Bootstrap, I've tried to respect Bootstrap components and the layout/structure of Apache projects (you'll find various configurations under 'layouts').

You can apply various bootstrap themes to it to improve it dramatically.

48
49
 
 

Things you can do right now to learn new and valuable things that can improve your code.

50
 
 

cross-posted from: https://programming.dev/post/9846201

Project CRaC, Correlation IDs, SSL Bundle Reloading and more.

view more: ‹ prev next ›