Questions tagged [spring-mvc]
The spring-mvc tag has no summary.
53 questions
0votes
0answers
251views
better structure of a software project to prevent circular dependencies
I am contacting you today regarding a recent problem with circular dependencies. It's about a Spring boot application that accepts data via a Rest API and then forwards it to an internal Spring ...
0votes
1answer
81views
I don't understand how to characterize a class similar to a DTO but with validation
I have the entity class. @Entity public class User { @Id @GeneratedValue private long id; private String name; private String lastname; @Column(unique = true) private ...
0votes
3answers
2kviews
In which scenarios is server-side rendering is better choice than the front-end JS libraries like React, Vue, Angular etc.?
As a Java developer, I just have scratched the surface of Javascript libraries like React, Angular, Vue etc. It seems that theoretically any web applications with server side rendering, like Spring-...
1vote
1answer
10kviews
Is it okay to have one Service with two different Repositories in Spring Boot MVC?
I have a backend Spring Boot API that should have one(?) endpoint that returns some statistics to display in a frontend. These statistics are calculated from data that comes from two different ...
0votes
1answer
101views
Where Should You Add a Shared Maven Module as a Dependency in an N-tier Architecture
In a simple web architecture using Spring and Maven where it consists of following layers: Controller Service Repository Shared Where in shared module all the classes that are used among different ...
1vote
1answer
949views
building a frontend for a microservice backend: architectures? (spring boot stack)
to summarize a bit my current situation: I am building a backend based on microservices using spring boot. These are aggregated behind an api-gateway. My intention is to consume these api's from both ...
2votes
1answer
151views
What should I name this area of my architecture?
I am developing an architecture for a new MVC system. The legacy system has a layer it calls "facade", but it is not the classic GoF Facade. It is more like a service aggregator. It is used as a ...
-2votes
1answer
276views
Property file, annotations or database tables for storing configurations
Which one is better property file, annotations or database tables for storing configurations related to a program? What are the advantages/disadvantages and what use cases are best suited for each ...
1vote
1answer
802views
JHipster generated endpoints adds header messages
I'm adding new functionality to an existing application it was done using JHipster. I've notice that some endpoints follow this pattern: return ResponseUtil.wrapOrNotFound(updatedUser, ...
-1votes
2answers
93views
User friendly webapp configuration
I'm planning to develop a web application that would run on-premise at the customer. I'm quite unsure about the whole process of setting up the site in a user-friendly way, but mostly disturbed by the ...
1vote
1answer
210views
Spring Boot Controller Unit Test Strategy
All of the controllers in our project are as dumb as we can make them. Rightfully so, they simply validate the incoming payload, hand the request over to a service layer, and return whatever response ...
2votes
1answer
2kviews
Handling an empty path variable request
I have a scenario where I can take a student Id as input via a part variable and return some data back as JSON objects where JavaScript handles the response as a part of AJAX call. Suppose the method ...
2votes
1answer
491views
Strategy to deal with huge data
I have a Spring based java webservice which is returning JSON response. The problem is that the JSON response takes long time because the SQL involved is querying huge chunk of data and it takes 4-5 ...
1vote
1answer
1kviews
Where to store static contents
Recently I am developing a new feature for my web application that must be Release Independent. The feature requires to show some predefined data. Those data will rarely be changed or updated. Here ...
8votes
1answer
7kviews
Implementing a REST API in a Clean Architecture
I have been implementing a proof of concept application using Uncle Bob's Clean Architecture and I have run into a bit of a problem. Uncle Bob's architecture calls for the explicit separation of ...