r/JavaProgramming • • 4h ago

Je veux faire du mappage sur des méthodes CRUD dans un DAO avec ReSTFul Web services sur un objet....

4 Upvotes

Salut, on a commencé les Web Services notamment JAX RS la semaine dernière et notre prof nous a demandé de mapper des méthodes CRUD créés dans DAO (architecture MVC) sur une classe nommée Produit. Les données se stockent pour le moment dans des listes. Maintenant je ne sais pas comment faire le mappage avec l'objet car il nous a dit de prendre en paramètre l'objet, pas les attributs quoi....sauf l'id au niveau de supprimer

Là je suis perdu, j'aimerais avoir de l'aide, des ressources et conseils... merci


r/JavaProgramming • • 5h ago

Top 5 Master.dev (Formerly Frontend Masters) Courses to Learn Java and Spring Boot in 2026

Thumbnail
medium.com
3 Upvotes

r/JavaProgramming • • 5m ago

I built a JUnit 5 add-on for testing Spring AI features: repeated runs, statistical baselines and record/replay in CI

1 Upvotes

Testing LLM features in Spring AI is awkward: the same prompt can pass one run and fail the next, so a plain assertion is either flaky or meaningless.

spring-ai-eval-baseline treats each LLM test as a small experiment:

- `@EvalTest(runs = 10)` runs the method N times and records the pass rate with a confidence interval

- The pass rate is compared with a baseline file; the test fails only on a statistically significant drop (Fisher's exact test), with optional latency and cost limits

- `RecordingChatModel` wraps any Spring AI `ChatModel`: record real answers once, then replay them in CI, offline and for free

- A Markdown report you can post as a pull request comment

Example:

```java

u/EvalTest(runs = 10)

void refundAnswerMentionsTheLimit() {

assertThat(bot.answer("Can I get a refund?")).contains("30 days");

}

```

I use it in one of my own projects: a regression test runs an LLM-based detector on a synthetic test set and fails CI if a prompt change makes detection worse.

Maven Central: `io.github.rrezartprebreza:eval-junit:0.1.0` (MIT, Java 21, Spring AI 1.0)

Repo: https://github.com/rrezartprebreza/spring-ai-eval-baseline

I'd like feedback on the API and the statistics. What would you need before using something like this at work?


r/JavaProgramming • • 10h ago

Why does my Java application become slow after running for several hours?

6 Upvotes

I'm working on a Java application that performs database operations and handles multiple user requests.

Initially, everything works fine, but after running for a few hours, response times increase significantly.

There are no major errors in the logs.

For experienced Java developers, what would you investigate first?

Would you check memory usage, garbage collection, database connections, or thread management?


r/JavaProgramming • • 12h ago

Which course? Java backend

Post image
1 Upvotes

I am thinking to start again my back-end journey

So if anyone have already enrolled any of these ...

Suggest me


r/JavaProgramming • • 1d ago

Which is the best Java Full Stack course on Udemy or on any other platform in Budget or free?

Thumbnail
gallery
7 Upvotes

How is Teslusko's Java Full stack udemy course and which one to choose the highest rated one or Industry ready one?
If you have any other suggestion or methods to learn java full stack please provide it.
If you have any good course or free resource, please help with that too.


r/JavaProgramming • • 1d ago

I have one week and can dedicate 6–8+ hours a day to building one solid project. What should I build as a fresher?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 2d ago

Java library

5 Upvotes

I'm planning to build a Java library. What's one feature or functionality you wish existed in Java that would make programming easier? I'd love to hear your ideas!


r/JavaProgramming • • 2d ago

Top 10 Skills Every Programmer or Developer Should Learn Before 2027

Thumbnail medium.com
2 Upvotes

r/JavaProgramming • • 2d ago

How to brush up for an interview?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 3d ago

I Almost Gave Up on DSA. Then I Found These 14 Patterns.

Thumbnail
javarevisited.substack.com
28 Upvotes

r/JavaProgramming • • 3d ago

How Java Virtual Threads Actually Work (your 200 thread pool was never a...

Thumbnail
youtube.com
2 Upvotes

r/JavaProgramming • • 2d ago

Java fundamentals

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 3d ago

Any help on how to improve this?

2 Upvotes
void main(String[] args) {
    Random rand = new Random();

    // 1. Single 'int' (no brackets), starting at 1 so it always prints at least one word
    int words = rand.nextInt(1, 10);
    int[] arrayofrandomint = new int[words];
    Scanner input = new Scanner(System
in
);
    String wordslist = " This is an actual pargraphing creting AI, it generates" +
            "text and predicts what the next word will be depending on how many" +
            "other words are around it.";
    String[] newdata = wordslist.toLowerCase(Locale.
ROOT
).trim().split(" ");



    for (int i = 0; i < words; i++) {
        //String currentWord = wordslist[rand.nextInt(0, wordslist.length)];
        // While in the for loop, resets the word every time insted of letting
        //this bigram chain flow from one word to another.
        String currentWord = newdata[rand.nextInt(0, newdata.length)];


        System.
out
.print(currentWord + " ");
    for (int j  = 0; j < newdata.length - 1; j++) {
        if (newdata[j].equals(currentWord)) {
            currentWord = newdata[j + 1];
            System.
out
.print(currentWor
d +  " ");

        }
    }



    }
}

I created a little bigram model using two for loops. I'm new to coding and have wanted to use my free time for something productive, so I started to learn how to code. Now that I'm getting better, I want to post something to show the progress. This model uses text as a string that is held within a container; the container then uses the variable wordslist and uses three methods on it. You can see what the I variable does, and J variable has a Universal Set (U) = {1,2,3} (three numbers). {a,b,c} three index positions. [a = 0, b = 1....] b = (length - 2), because (length < -1) J = {1,2} {a,b,c} = (a,b-c). mport java.util.Random; import java.util.Scanner;


r/JavaProgramming • • 3d ago

Best Java course on udemy before joining as a java software engineer trainee

12 Upvotes

Pls recommend


r/JavaProgramming • • 3d ago

I Tried 100+ Udemy Courses: Here Are the 10 Developers Should Buy on Black Friday 2026

Thumbnail
javarevisited.substack.com
1 Upvotes

r/JavaProgramming • • 3d ago

Need help regarding java learning path

4 Upvotes

Hy I'm a beginner java learner. Recently my friend said java got a bit easier and the syntax is shortened.

Does that mean I should learn the new java version, fundamentals etc? Or start from the earlier version of java?


r/JavaProgramming • • 4d ago

Java study buddies server

6 Upvotes

Hey everyone i am first year student and I had created a server at discord and in that we will learn java from scratch and improving each other's understanding by supporting each other only serious people dm me to join


r/JavaProgramming • • 3d ago

I have to develop a final project for my Object-Oriented Programming (OOP) course using Java. Can you suggest some creative and interesting project ideas? I want to build something different from the usual management systems. Please suggest a project that meets typical university project requirement

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 4d ago

Hey i'm from tier 3 college in my 5th sem learned java till half of array i have ECE as my btech speciallization and cgpa is 7.49 i have my placements in my 7th sem what are the most important things i must start to do atleast to land up in the cognizant like mass recruiters??

3 Upvotes

is it even possible ?


r/JavaProgramming • • 4d ago

Run a Frontend and API Together From One Tunnel File

Thumbnail
instawormhole.com
1 Upvotes

r/JavaProgramming • • 4d ago

Got the “this app won’t be supported” (macOS) warning for Jaspersoft Studio, so I built a native replacement

4 Upvotes

A few months ago macOS started showing me that popup saying Jaspersoft Studio won’t work in a future version. It’s an Intel app running through Rosetta, and there’s no Apple Silicon build coming as far as I can tell.

Problem is I live in that thing. I tried the other Mac options that handle jrxml and jasper compiling, and in the end built my own native macOS app.

It’s called Report Studio. The app itself is Swift (SwiftUI and AppKit), and it talks to the JasperReports engine running as a small bundled Java process. It opens the same .jrxml files and uses the real JasperReports engine underneath, so there are no compatibility surprises. I use it for my actual work now, since much smoother and easier to work with than the Studio used before.

It’s free: https://bowa.up.railway.app/report-studio

Anyone else still on Jaspersoft Studio on a Mac?

What other ways do you use to open jrxml and compile jasper files, except Jaspersoft studio?