Category "spring-boot"

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

Spring Boot Actuator endpoints unreachable in a SOAP web service

I've created a SOAP web service using Spring Boot, based on this tuto : https://spring.io/guides/gs/producing-web-service/#scratch. The web service works great

Bean instantiation via factory method failed; exception org.springframework.beans.BeanInstantiationException

I have the following Spring configuration for Kafka: import org.apache.kafka.clients.producer.ProducerConfig; import org.springframework.boot.context.properties

Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata

How to fix this error? Here is it: Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata A

@ConfigurationProperties on fields

When defining properties with @ConfigurationProperties, can I define the prefix of a specific field instead of the whole class? For example, let's say we have

Automatically trim trailing white space for properties in properties file

Spring doesn't trim the values given in properties file. As per the discussion here, it looks like they have kept in intentionally. However, in our project, we

How to define default null value in application.yml in Spring Boot

I'm trying to define the default value as null value in application.yml with SpringBoot version 1.3.0.RELEASE. The goal is be able to refer it with a class with

MapStruct not autowiring with Kotlin and Spring Boot, built using Gradle

I have the following parts in my gradle file: apply plugin: 'kotlin-kapt' ... compile("org.mapstruct:mapstruct:1.3.0.Final") kapt("org.mapstruct:mapstr

Spring Boot can't autowire @ConfigurationProperties

Here is my FileStorageProperties class: @Data @ConfigurationProperties(prefix = "file") public class FileStorageProperties { private String uploadDir

Programmatically call spring cloud config actuator/env post endpoint in spring boot application

I am using spring cloud config in my spring boot application, I am trying to update the property value through actuator/env post endpoint. Here is my code: @Ser

Facing NoSuchMethodError and NoClassDefFoundError after Spring boot upgrade from 2.4.x to 2.5.x

Error logged while running gradle clean build: java.lang.Exception: Unexpected exception, expected<org.springframework.web.client.HttpClientErrorException>