I am following this link for understanding hexagonal architecture with spring boot. The infrastructure section contains the configuration for the service bean and the repository is passed as a parameter as a below method. Configuration I am not using JPA instead using Spring JDBC for interacting to DB. Linked…
Tag: spring-boot
ReactiveCrudRepository vs. R2dbcRepository
I am learning the reactive stack starting with R2DBC and this is what I don’t understand: What are the differences between these, when to use them, and how relevant the @Repository stereotype annotation is to them? org.springframework.data.r2dbc.repository.R2dbcRepository org.springframework.data.reposi…
Azure AD with spring boot with user in local Database
Helo Here, I Hope you are doing well. I’s been few days I’m having this problem. I have a spring boot API using Azure AD authentication thanks to AADResourceServerWebSecurityConfigurerAdapter. Here is the flow I want to have: User gets token from Azure in the react native frontend (done) User logs…
Spring boot doesn’t identify html templates without Thymeleaf dependency
I am using spring-boot 2.5.0 and maven as dependency management tool. I have following dependencies as of now in my project. I want to use jsp instead of thymeleaf but when I put my “index.html” file inside templates or static sub-folder of resources folder it doesn’t recognize the html file…
Field jwtTokenProvider in security.JwtAuthenticationFilter required a bean of type ‘security.JwtTokenProvider’ that could not be found
I’m new to Springboot and i hope you can help me. I’m doing a back application in SpringBoot for a react native app and i’m stuck. I want to secure my app with a jwt but when i try to launch my application i have this message andi don’t understand why i got this. JwtTokenProvider Class…
Internal Server Error When Adding WebMvcConfigurer To Spring Boot Rest Application
I have a Spring Boot app and I wanted to allow other origins to make requests because I got the ‘cors’ error. So I searched and I found this answer: Annotation CrossOrigin not working in Spring boot witch helped for the endpoints that have no body. On the other hand, those who have a body I get In…
How to implement a synchronous job queue in Spring?
I’m trying to find out how to implement a job queue using Spring. I’ve got a server up and running that I plan to have users submit POST requests to. This will take in some data and will then queue jobs to process this data. The processing of this data is an expensive process that can sometimes ta…
Spring Mockito @BeforeAll mocking logic works on 1 test only
I have a problem with understanding why the logic mocked inside @BeforeAll works, but only for the first test. They work fine separately, copying the identical logic to both tests will produce the same result – 1 passed, 1 failed. What happens: in AboutUsService.update() on the first line appears the mi…
create specific schema in mysql with docker-compose
I have to create a specific schema for each service. First, I will connect with the database as a root user with the help of docker-compose file docker-compose.yml Second, I will create schema.sql file under the root path of the spring boot project. schema.sql 3.Finally, Connect with the specific schema on th…
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userServiceImpl’
I’m new at Spring Boot. And currently, I have a problem with the running the project. there is the error as and there is classes to consuming SOAP Configuration class Service class to generate methods PassPolicyService Service class I thought it’s happening because tried to @Autowire service class…