Skip to main content
Software Engineering

Questions tagged [java]

Java is a high-level, platform-independent, object-oriented programming language originally developed by Sun Microsystems. Java is currently owned by Oracle, which purchased Sun in 2010.

Filter by
Sorted by
Tagged with
1 vote
4 answers
163 views

I'm working on a Spring Boot application with a VoucherService and VoucherController. I currently have the service method return an ApiResponse<T> directly, like this: @Transactional public ...
7 votes
3 answers
547 views

The Java List<E> interface includes methods, such as add(E) and remove(Object), that work as the names suggest on instances of mutable concrete implementations, such as ArrayList<E> and ...
1 vote
1 answer
227 views

I am refactoring my monolithic application, in which the code is organized based on layered architecture. I want to implement Modulith (Modular Monolit) in my app, but I've run into a problem: I haven'...
0 votes
2 answers
142 views

I'll get straight to the point. I want to implement a class structure in Java similar to the one in the image. Am I falling into bad practice with this kind of diamond-shaped interface implementation?...
2 votes
3 answers
637 views

Sometimes, you inherit from a class that defines the semantics of your type (Shape – Ellipse – Circle). Other times, you inherit simply because it's convenient to do so. A superclass may have ...
1 vote
2 answers
257 views

Suppose you have a panel with a table, which I will call a pane. The table has a toolbar above it, including an edit button. Editing involves showing an editing dialog. It allows the user to edit the ...
0 votes
2 answers
203 views

I’m refactoring a microservice project where multiple services share the same domain objects. Over time, these objects have diverged across services, causing inconsistencies. To solve this, I plan to ...
4 votes
2 answers
328 views

Our team of 5 members are managing a microservice architecture that currently includes around 200 Java Spring boot microservices, with approximately 50 new services being added each year. We follow ...
0 votes
3 answers
219 views

Problem: our application allows users to close a form window after certain changes without any confirmation, instead of pressing the Save button. This makes them complain they have to start afresh. We ...
1 vote
2 answers
207 views

This is how our desktop applications are launched. In this case, it's called DesktopApp (I changed the actual name). As you see, the dependencies are hard-coded, including their versions. In the ...
0 votes
1 answer
131 views

I am exploring the state-of-the-art methods to create a service that can run and scale in both cloud (container) and on-premise environments. The current version of the software is designed for on-...
0 votes
1 answer
114 views

I'm developing a microservice-based application that processes a high volume of messages. Each message must be handled according to the user’s personal settings and some tenant-specific (customer) ...
2 votes
3 answers
265 views

(related: Fetching records matching multiple joined attributes) If Spring Data doesn't allow GET requests to have a body (and it's considered bad practice anyway) curl -X 'GET' \ 'http://localhost:...
0 votes
2 answers
157 views

I’m designing a system where various "handlers" apply business rules to an object. Initially I had each handler receive the full domain object: // A large domain object with many properties and ...
1 vote
5 answers
559 views

Say I have a bunch of classes that imitate cars: SportsCar, Truck, and SUV. All of these classes share some public methods like start() and stop() which they inherit from an abstract class Car. While ...

15 30 50 per page
1
2 3 4 5
...
335

AltStyle によって変換されたページ (->オリジナル) /