I'm building a REST API with Spring Boot to retrieve boat information. I'm using Spring Data Rest and Spring Data JPA. When I get the data from the API, I don't
When creating tests and mocking dependencies, what is the difference between these three approaches? @MockBean: @MockBean MyService myservice; @Mock: @Mock
I am using spring-boot-maven-plugin:2.1.0.RELEASE to package my main line application. This application has all common dependencies etc packaged In a separate
This is my UserDetailService: public class StockUserDetailService implements UserDetailsService { @Autowired private UserRepository userRepository;
I have 3 dropdowns(one is populate with cities, one with agencies and one with services). If I select one city, the second dropdown should load the data(agencie
We have two springboot servers. We use nginx so that the user request will be sent to one of the server node. Now we want to achieve that: After user inputs thr
We upgraded an spring boot app from 2.0.0.RELEASE to 2.5.5. We use spring integration with queues persisted in Postgresql. We expose API. The embedded server is
While trying to use max function in thymeleaf I got OGNL expressionn everytime. I'm not even sure if we can use functions like max/min in thymeleaf. Tried to lo
I am using an external dependency in my SpringBootApplication. The main class is defined as @ConfigurationPropertiesScan @EnableConfigurationProperties @SpringB
I have an app with React in the frontend and SpringBoot in the backend for the API, when I login with some user it saves the token in localStorage and you can m
I want to connect my spring boot application to AWS Aurora MySQL RDS. The problem is while there are plenty of examples of AWS MySQL RDS. I cant find an example
I have a spring boot project running on java8 after I installed mysql8 server and tried to connect I am getting the error com.mysql.jdbc.exceptions.jdbc4.MySQ
I have the following field inside a StacItem Object: @JsonProperty private List<Number> bbox = null; I made a basic implementation with OpenCSV to write
I am creating a Spring boot application with a thymeleaf front-end. I am trying to create an object of type "expense" (seen in the code snippet below) but, when
With JUnit i could use @MockBean easily : @SpringBootTest(classes = AppConfig.class) @RunWith(SpringRunner.class) public @Log class ServiceDrhImplT
I'm making an application for a school project, but I'm running into the issue that when I try to run the unit tests that it tries to connect to the database wh
I'm trying to make call to repository inside my Entity Listener, when I call repository.findById() method inside my @prePersist method the same method is callin
Hi I am trying to index an entity in solr using spring boot data solr. But i am getting exception Caused by: org.apache.solr.client.solrj.impl.HttpSolrCli
Using spring boot 2.6.2, with java17, trying to create native image but it fails with below error. I am building it on windows 11 machine with docker desktop i
I am relatively new to Spring and Kotlin. I ran into this problem and it does not seem that there is a comprehensible (for me) explanation anywhere on the Inter