Category "spring-boot"

Deploying Spring Boot war in AWS ec2 instance

I am trying to deploy a spring boot application as war file in Apache Tomcat/8.5.29 on aws ec2 instance. Same war file working fine if i paste it in local machi

Spring Boot + Hibernate - Insert query getting slow down

I am working on one spring boot application. Here I have 100,000 records that are inserted into db by different process. and its inserting one by one. I can't d

Springboot REST API RestAssured testing project setup and project structure

I have a Springboot application that is a REST API and I would like to start adding RESTAssured integration tests with JUnit 5. I also added folder structure to

Spring Boot: run liquibase migrations without starting app

In Spring Boot, the documentation seems to encourage running migrations on app startup. This is fine, but sometimes app startup may have side effects / depende

Spring MVC 5 ResultMatcher jsonPath null value

After upgrading my rest service from Spring Boot 1.5.10 to 2.0.0 I encountered my tests failing which passed before. Following Scenario: import org.mockito.in

cannot handle exceptions in spring batch integration flow

I'm trying to set up a flow that handle exceptions thrown during batch execution (this job is executed through the flow startBatchFlow), but the program ends wi

spring-cloud-vault-config-databases with Spring Boot 2.4.0 Config Data API fails to bind properties

I'm using spring-cloud-vault-config-databases with Spring Boot 2.4.0 Config Data API as the prefered mode described here bootstrap.yml configuration not process

Spring Boot Upgrade from 2.3.x -> 2.6.x Breaks mvc forward:

After upgrading From Spring Boot 2.3.x to 2.6.x Forwarding MVC REST Calls doesn't work. We have a controller for /health that returns forward:/actuator/health/.

Springfox swagger-ui.html unable to infer base URL - Caused by missing cookies

We have our Spring Boot services behind an API Gateway. With an earlier version of Springfox - 2.1.2 we had no issues in loading the swagger-ui.html page. This

Spring-Boot-Admin application not starting because of error creating bean with name adminHandlerMapping

I am following this blog to try out a Spring-Boot-Admin application. And when I run the app it fails with the below error: Application run failed org.springfra

Debezium only reports change events at startup

I am using Debezium Spring Boot starter with its supplier: org.springframework.boot:spring-boot-starter-parent:2.4.10 org.springframework.cloud.fn:cdc-debezium-

How to create a second RedisTemplate instance in a Spring Boot application

According to this answer, one RedisTemplate cannot support multiple serializers for values. So I want to create multiple RedisTemplates for different needs, spe

Content type multipart/mixed not supported / 415 UNSUPPORTED_MEDIA_TYPE (after Spring + Spring Boot upgrade)

I was previously using the following versions of Spring + Spring Boot: <springVersion>5.0.16.RELEASE</springVersion> <springBootVersion>2.0.5.

Load Spring Boot Classes in ClassLoader

I need to read a Spring Boot jar and load all the clases on a ClassLoader. My problem,in spring boot classes are on "/BOOT-INF/classes" directory and not on t

How can I get a sequence number from an oracle database with jpaRepository?

I´m trying to get a sequence number from an oracle database using a jpaRepository. The main problem is because I don´t have any Object in JpaReposi

Make FileAlterationListenerAdaptor.onFileCreate() always single thread, apache.commons.io.monitor

I'm overriding the onFileCreate() method of the org.apache.commons.io.monitor.FileAlterationListener interface. The method works, but I found that sometimes it

Zendesk file upload through Spring boot REST

I'm trying to upload an image to the zendesk through its API, Once the file is uploaded I can get the token but files seems empty, Reference : https://support.z

Spring boot: JSP not found (404)

I'm trying to create a new project with spring boot. But I'm getting Error described below. I have added my code. Error HTTP ERROR 404 page not found He

Gradle archive contains more than 65535 entries

I am integrating hadoop2.5.0 for running mapreduce job and spring-boot-1.2.7 release and getting error while including this 1) archive contains more than 65535

Spring Boot in Docker throwing an exception 'hibernate.dialect' not set

I am using spring boot to develop an app and I am using mysql as database.I have the below configuration in application.properties. server.port=8090 spring.dat