Category "spring"

Error With ConfigurationPropertiesBinder java spring when trying to start application context

I have a simple application it fails to load with the below error APPLICATION FAILED TO START Description: An attempt was made to call a method that does not ex

Is it reasonable to have properties file while having Javaconfig classes in spring projects?

I encountered handful of guides to creating spring data jpa projects and people configured persistence layer using properties file and javaconfig both. If we on

Is it reasonable to have properties file while having Javaconfig classes in spring projects?

I encountered handful of guides to creating spring data jpa projects and people configured persistence layer using properties file and javaconfig both. If we on

Spring cloud stream merge responses from two different functions

I'm trying to use spring cloud stream to solve the following problem: I have a class that calls two separated functions (Function A and B), both of those funct

Can Spring Batch be used to fetch response from REST API

I have a Spring boot REST App which Encrypts the data and posts on to another REST application (Vault) which encrypts and stores the sensitive data and return a

Add Spring security authentication to React

I have a project with built-in spring security athentication that works fine. Now I'm rewriting the frontend from jsp to react and I need authentication to work

NoClassDefFoundError on MongoCustomConversions while upgrading springboot

I am getting the following error java.lang.NoClassDefFoundError: Could not initialize class org.springframework.data.mongodb.core.convert.MongoCustomConversion

Gradle cannot find Spring Boot 3.0.0-M1

I'm not sure how to debug this or what is wrong at all. I am trying to run this project: https://github.com/spring-projects/spring-security-samples/tree/main/se

Populate a drop down with a list using Thymeleaf and Spring Boot

I'm trying to add an HTML select with data from a Database using Spring Boot and Thymeleaf. I can't get it what I'm doing wrong. This is the Code that is connec

JPA duplicate entry error on EntityManager.remove and then EntityManager.persist

I am using Hibernate implementation of JPA. Let's say I have a list of objects which I have to persist in a table called Event. All these objects have the same

Best Practice to transform request headers before passing it to rest contoller

I am working on a Spring Boot project with Java 11. I have a rest controller that has a GET endpoint. The controller method takes account number as one of its a

i have this exception "org.hibernate.tool.schema.spi.CommandAcceptanceException:

this is my code package com.examplesector.choosesectors.models.Entity; import lombok.*; import javax.persistence.*; import javax.validation.constraints.Size;

How get two joined tables from database in Spring Jpa?

I have two tables, joined each other. How I can get from database both of them using Spring data jpa? Code as below, @Entity @JsonNaming(PropertyNamingStrategie

no validator found for custom annotation and validation for enum springboot java8

Getting this error HV000030: No validator could be found for constraint EnumChecker validating type MyEnum Check configuration for ‘myenum’. Using t

Springboot Actuator Refresh does not reload @Value properties in @ConfigurationProperties

I have a springboot application that ingests an application.properties via @ConfigurationProperties and @PropertySource("classpath:application.properties"). My

IntegrationFlow memory leak

I have two integration flows that get files from two different directories. @Bean public IntegrationFlow processBridgeFlow() { return Integratio

Can we make folder inside template package of SpringBoot Application?

I have been working on dummy Web application, and there are lot html file in template which I want to organize. I am getting an error when I have keeping them i

Hibernate XML Entity Mapping

I have simple definition of my entities, but what i do wrong, because i can not get any entity UserInfo and receive only error (could not load an entity: [UserI

spring quartz does not run

All libraries and settings are in progress, but spring quartz does not run. QRTZ_LOCKS, QRTZ_ in DBThe SCHEDULER_STATE table contains data, but the Trigger tabl

OAuth2 with Google and Spring Boot - I can't log out

I've been trying to get a successful Oauth2 login with Google and Spring Boot for a while now. This only works partially. Why partly - because I can't manage th