Category "spring-boot"

I am getting java.lang.ClassNotFoundException: Cannot find implementation for com.example.demo.mapper.DoctorMapper

This is a mapper interface for mapping: @Mapper public interface DoctorMapper { DoctorMapper INSTANCE = Mappers.getMapper(DoctorMapper.class); DoctorDto toD

Apache Camel SFTP get file content null

Java Code @Component @RequiredArgsConstructor public class WireInboundFileListener extends RouteBuilder { private final JwtWireTokenService jwtWireTokenSe

Spring boot native configuration

I am trying to migrate existing spring boot application to spring native. In this case, I have application.properties and application-dev.properties. package co

How to create Session Factory when sending async messages via ActiveMQ Artemis in Spring Boot?

I'm trying to send simple message to a topic from sender Spring Boot app to a receiver Spring Boot app. But I keep getting two exceptions. First exception occur

Parallel test execution and growing active connections to mongodb

I have an application with thousands of tests through MockMvc. The tests are running in band, so 1 at a time and whole process takes hours. I decided to try par

How to permit child pages from root only

I have a Spring Boot Vaadin web app with Spring Security and keycloak-spring-security-adapter. This works fine on the root page. From the root page I can access

Spring boot AbstractDataSourceBasedMultiTenantConnectionProviderImpl as well as a shared database

I currently have multi tennancy database working by implmenting AbstractDataSourceBasedMultiTenantConnectionProviderImpl. This is working great thankfully. Now

Hibernate validation: Skip Constraint violation in specific situations(api calls)

I have an object User and as part of validation I have provided something like below: import javax.validation.constraints.NotBlank; public class User { pr

How to scale one specific Rest API without microservice?

I am developing web application backend with Spring where client and server talk through Restful APIs. There is a specific API where I assume the hit will be mu

Unable to Transfer spring-boot-starter-parent from maven repository

Below is my pom.xml. I am getting exceptions while fetching the spring-starter-parent from maven repo. what is it that I should specify in my relative path : Wh

Spring boot - adding a secondary data source causes nothing to get save during a integration test

In a project I am working on we added a secondary data source. This meant adding the entity factory and the transaction manager at the @EnableJpaRepositories. W

How to implement multi-tenancy in new Spring Authorization server

Link for Authorization server: https://github.com/spring-projects/spring-authorization-server This project pretty much has everything in terms of OAuth and Iden

Spring Boot - nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type '' available

I'm trying to add the following statement to a Spring Boot service: @Autowired private ApELDatabasePublisherService eventPublisher; The dependency for eventPu

Spring Boot MockMvc Authentication Object Is Null

@DeleteMapping("/uri/{id}") public ResponseEntity<RestResponseBody> delete(@PathVariable Long id, Authentication auth) { return ResponseEntity.ok(new

Trying to create dynamic ES Index facing java.lang.ClassNotFoundException: org.springframework.data.spel.ExpressionDependencies

Using <spring-boot.version>2.3.9.RELEASE</spring-boot.version> added following dependencies : <dependency> <groupId>org.springframew

Getting Connection is broken: "java.io.EOFException: 192.168.1.178:52002" [90067-200]

I have spring boot application which starts H2 db with below URL jdbc:h2:~/data/test;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;TRACE_LEVEL_SYSTEM_OUT=3;AUTO_SERVE

File content is different in Docker image vs mounted folder

I have a mounted folder and I download files into this folder through Spring boot application in docker container. File content is correct in my macbook's mount

Do a connection using EventSource from Android with HTTPS to Spring-Boot server (JAVA)

I have a spring-boot server which only accepts https requests, the point is that I need it to be able to communicate with the client (android) using SSE. I have

How to dynamically access multi level object Java 8

I have an API that returns a parent with its children, I need to implement that in java 8 to be able to return them as below: A -> has B as Child, and C as C

Spring Boot Azure AD custom roles

I have this vanilla spring boot/azure/starter app, connecting to our internal azure service. https://docs.microsoft.com/de-de/azure/developer/java/spring-framew