Questions tagged [spring-boot]
The spring-boot tag has no usage guidance.
67
questions
0
votes
1
answer
86
views
To And From Date Validation in Model
In my Springboot project I need to perform a validation of the type validFromDate<validToDate.
I was wondering whether would it be a good or bad practice to place a validation in the model itself (...
0
votes
1
answer
2k
views
In a Spring Boot Project, would you use interfaces for entities or not?
I am currently on the decision, whether to use interfaces throughout my whole spring project or not. I scouted some open source projects and saw, that many big projects are handling that quite ...
2
votes
0
answers
228
views
Send push notifications from ActiveMQ
I am trying to figure out how to send push notifications back to the client in the following ActiveMQ scenario:
I have a spring boot web application #1 deployed on tomcat on RHEL server. From the ...
1
vote
2
answers
574
views
How to abstract the data layer when using Spring Data?
I have decided to try to create my own board game implementation. Probably going to use a REST-api to expose the contract. I'll figure out what database, communication, ... tools I'm going to use once ...
4
votes
1
answer
1k
views
Spring Boot - What is the purpose of Autowired Constructors?
I’ve been developing in Spring Boot for just over a year but have yet to understand the benefits of using an Autowired constructor and I was wondering if someone could explain this to me and what ...
2
votes
2
answers
2k
views
Spring Boot REST Java Microservice: Why Use Maven Submodules?
I have seen a project which uses Maven submodules. The project itself is a spring boot application that exposes Restful API endpoints for a microservice ex: Customer Service (getCustomers, ...
-1
votes
1
answer
270
views
DDD persistence through non-orm tools in java
So our domain model drove our database and ORMs worked for DDD implementations.
Now the tables have been altered a lot and as a consequence ORM impedence is too much in our domain model to use ...
-1
votes
2
answers
91
views
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 ...
-1
votes
1
answer
482
views
Pattern for for REST API who's response depends on behavior of requests to other services
Some one help me with my design paralysis!
Assume a microservice (probably going to be implemented in Spring Boot) that has implemented an run of the mill REST API, and after receiving an initial ...
0
votes
0
answers
157
views
How can I create a spring-boot application which can be easily extended with plugins?
I am planning a spring boot application that can be extended with plugins. However, I haven't found out yet whether spring boot meets my requirements in this regard.
I imagine the following folder ...
1
vote
1
answer
131
views
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 ...
9
votes
2
answers
7k
views
Should I validate dtos or entities? [closed]
I want to place validation in one layer for the reason of simple code maintenance. I was thinking of entity validation, cause this protects directly database. Am I right, or should I add validation ...
0
votes
2
answers
2k
views
Using Spring Boot's @ConfigurationProperties without violating Law of Demeter
My apps commonly have one or more prop holders. These holders contain config data used in the app such as:
@Component
@ConfigurationProperties(prefix="app.orders")
@Data //lombok
public class ...
7
votes
3
answers
5k
views
Is it a good idea to share repositories across microservices in Spring Boot Application?
We are migrating a desktop application into web based Spring Boot micro services application with a client imposed mandate of using their existing MySQL database, so all micro services share a common ...
-1
votes
2
answers
133
views
Dealing with data download which could take days to download
I have a situation on the front end where a user clicks on “Download” button and the query behind the scenes is going to take over a day. I have a Spring boot web app running as far as web services ...
1
vote
0
answers
73
views
How to build Spring Boot multimodule app build to separate WARs and shared library/dependencies?
Currently, I'm trying to migrate multimodule angular + spring 4 app build with ant and ivy to Spring Boot and build it with Gradle. The issue is that I don’t how to create build upon some custom ...
0
votes
1
answer
467
views
Best approach for web service that calls other web services
The scenario is:
client makes request to server A
Server A makes potentially multiple requests to server B. Edit to clarify, server A makes the requests concurrently using Futures.
Server A blocks ...