Category "spring-boot"

Unable to create table with postgres-hstore column type in H2 Database

I'm working on requirement to create a new table which has a column of type hstore. This is a Spring Boot app. I have created the JPA entity and run some tests

I have two filters in a Spring Boot project. Why the response.isCommited() became true when the response go through the first filter

I have two filters, and one of them needs to setting headers into the response. response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Acce

Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due

Maven mvn install doesn't run liquibase scripts

everyone! I faced with a problem. I have SpringBoot app with Spring JDBC and liquibase. When I do mvn install my tests failed because, liquibase doesn't run. Wh

How to auto instrument my Spring Boot web api call tracing and send to Google Cloud Trace

I am trying to figure out how to auto instrument my Spring Boot web api call tracing to Google Cloud Trace. (My Spring Boot app is in GKE). I did similar thing

JPA Specification predicate for querying latest/newest/most recent records

I'm trying to convert the below query into a JPA specification in order to enable more flexible querying of my Rule entities, but i don't find any way of transl

Set of String is not acting normal in Spring JPA Projection Interface

I am using Projection Interface to return a partial view of an Entity, and the partial view contains a Set of String. I expect the Set works as normal but its n

Feign client : Load balancer does not have available server for client

I'm working on a microservice architecture, I'm using Feign client to make a rest call to another microservice. I using spring boot version 2.1.3.RELEASE and sp

Not able to build a jar in google Cloud Build

I am new to google cloud, I am building an application with maven. In my maven repository I have lib folder where I have didisoft jar files. I have added the pl

How to read Vault kv with java/spring boot

I'm trying to figure out how to use Hashicorp's Vault with spring boot. Initially, I have tried to follow the guide: https://spring.io/guides/gs/vault-confi

Obtain an OracleDataSource in SpringBoot 2

Is it possible to retrieve a OracleDataSource from the default SpringBoot 2 Hikari connection pool using a NamedParameterJdbcTemplate object? Using Java 8, Orac

Spring Boot Multitenant - Access data from multiple schema at the same time or per http request using spring boot

We are working on the multitenant application in spring boot. We have created different schema for different customer and we also have public scheme for super a

TestEngine with ID 'junit-vintage' failed to discover tests - JUnitException: Failed to parse version of junit:junit: 4.13.2

I'm having a very weird issue with my Gradle config and JUnit, I have tried updating to 5.7+ but I'm getting the following exceptions: org/junit/jupiter/api/ex

TestEngine with ID 'junit-vintage' failed to discover tests - JUnitException: Failed to parse version of junit:junit: 4.13.2

I'm having a very weird issue with my Gradle config and JUnit, I have tried updating to 5.7+ but I'm getting the following exceptions: org/junit/jupiter/api/ex

spring boot not getting connected to RabbitMQ in AWS

I am trying to connect my Spring-Boot application to RabbitMQ which is hosted as a AWS service.I am getting the following exception when starting the applicatio

org.springframework.web.client.ResourceAccessException: I/O error on GET request for in Microservices

I am developing microservices code from the link : https://github.com/sivaprasadreddy/spring-boot-microservices-series. In this code base, I was successfully ab

Docker: Can't read class path resource from spring boot application

Reading a classpath resource as, try { final ClassPathResource classPathResource = new ClassPathResource(format("location%sGeoLite2-City.mmdb", Fil

Spring Boot Multiple Ports?

How can I have a spring boot web application running on multiple ports? for example 8080 and 80 how can I achive this?application.properties server.port=8080,

Spring RequestBody with either List<Object> or Object. Name for both are same "data"

I want to handle json request for List of Object and Object it self in the same Spring controller. Below is the exact example. Json Request for Single Object:

Is it possible to use data.sql without schema.sql

I want to initialise schema using spring.jpa.generate-ddl=true and then populate using data.sql. I tried it but it doesn't seem to work without schema.sql. Any