Category "spring-boot"

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

I'm trying to write tis code in spring boot way, how to write prepared statement in spring

I'm trying to write tis code in spring boot way, how to write prepared statement in spring public static TechInfo getTechInfo(final Connection ttdb, fi

MariaDB Connector gives datetime with precision 3 instead of 6 after update to version 3.0.3

I have a spring boot application with mariaDB, after updating the connector ("org.mariadb.jdbc:mariadb-java-client") from version 2.7.5 to 3.0.3 the datetimes (

Spring Data Elasticsearch query all indices

I can GET http://localhost:9200/_all/_search?q=query to search all indices for the query string. However, I can't find a way to do this using spring data elasti

Polymorphic list elements in Spring configuration?

Is there an easy way to have polymorphic list elements in a configuration? E.g. for the following application.yaml: Vehicles: one: type: Bicycle id: 4

Java Stripe : How to Complete an "Incomplete" Payment

I'm using PaymentIntent to make a payment. I specify the customer that has all the billing info, but the payment is specified as "Incomplete", I checked this ST

Spring Boot and H2 Table Population Error: org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL

I am having trouble getting an H2 In Memory database to populate. The idea here to have the BuildingCode which is unique as a primary key and id. I get the foll

Angular with Spring boot static does not work

I have an spring boot app, which contains an angular front like this: src/main/resources/static/zanori2 Where in zanori2 I have the result of ng build some like

Issue with Spring batch metadata tables

I created the spring batch metadata tables using the following link in my own oracle database https://github.com/spring-projects/spring-batch/tree/main/spring-b

Keycloak 2fa via SMS using external REST Api

I have been trying to implement 2fa using OTP. Till now i am successful doing it via browser flow using keycloak interface to login. Keycloak provides an API to

Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool;

My Spring boot app hosted in AKS Azure, while hitting the redis cache in Azure, getting Unable to connect to Redis; nested exception is org.springframework.data

spring boot dynamic scheduling with cron expression defined by the user

I want to send messages on different dates so I'm going to use java scheduler and dynamic cron expression but the problem is that user can send multiple messag