Category "spring-boot"

How to get previous task local variables of a running process instance in activiti

I am developing a spring boot application with activiti as the workflow engine. The activiti-spring-boot-starter dependency version is 7.1.0.M6 and spring-boot-

HttpServletRequest throws error when used within Aspect

I have a method which has an aspect. When I try to @Autowire HttpServletRequest, and use request.getHeader(something), I get this error - No thread-bound reque

Invoke method using spring SPEL with property

Is it possible to use a property value to invoke a method while assigning a value? For instance, I know I can do this: @Value("${name}") private String name; //

How to do rescheduling in springboot

I have a spring boot application which contains a scheduler that picks up file from my local.I want the scheduler to be rescheduled to an hour after if my local

Unable to send Kafka Avro Message to Message Channel <Failed to convert Generic Message to Outbound Message>

We are trying to push a Kafka notification to the external Kafka Topic by sending the Avro Schema Message to the Message Channel. On sending the message to the

No converter found capable of converting

I am developing a application using Spring Boot where i am implementing Authentication and Authorization.This is my Role Entity @Entity public class Role extend

What is use of the annotation @JsonIgnore?

I'm joining tables with one to many cardinality, the classes I'm using refer to each other. And I'm using @JsonIgnore annotation with out understanding it deepl

Returning proper value from @AfterThrowing

I am new to String, SpringBoot. Can we suppress thrown exception in a method annotated with @AfterThrowing? I mean when an exception is thrown, it will suppres

Spring boot application fails to start after upgrading to 2.6.0 due to circular dependency[ unresolvable circular reference] [closed]

Spring boot upgrade Error Spring boot application fails to start after upgrading to 2.6.0 due to circular dependency Error creating bean with

How to enable spring security kotlin DSL?

How can we enable support for the spring security kotlin DSL? As you can see from the Screenshot of the IDE (IntelliJ), the DSL is not available: This is the f

Does Redis cache have advantage over Spring cache if used only for simple cache?

I am new to caching thing and learning some different solutions for my spring boot app. I was looking at Spring Cache and it is simple caching mechanism (that w

Checkmarx report sql injection JpaRepository

im running Checkmarx on my code and im getting an sql injection vulnerability. this is the simplified method im using public String assignRole(String userId, St

Spring Boot and R2DBC: io.r2dbc.spi.R2dbcNonTransientResourceException: Connection validation failed

I'm using Spring Boot 2.4.9 with WebFlux and R2DBC, deployed using the standard Netty server. The database is PostgreSQL. There is only one R2DBC repository c

Generalize Specifications with joins

I'm using Spring Specifications to filter and sort through a class using multiple joins. For example, I have the class ContextData public class ContextData impl

ReactJS/Springboot- Blocked by CORS policy: No 'Access-Control-Allow-Origin'

I am working on a project with Springboot ReactJS and MongoDB. I have implemented the whole code but it doesn't import data from the database. It shows the belo

Encountered invalid @Scheduled method 'methodName': Only no-arg methods may be annotated with @Scheduled

plz I don't know wath is the exact problem in the code if I add Scheduled annotatiçon in my code suddenly this error appears if you have any soulustion p

Spring Cache Caffeine bulk retrieval

Is it possible to use Caffeine's CacheLoader::loadAll with @Cacheable annotated method with collection parameter, like @Cacheable(cacheNames = "exampleCache", c

Spring Boot allow Square brackets for nested objects in Request Parameters

I'm using Spring Boot 2.6.7 and org.springdoc:springdoc-openapi-ui:1.6.7 to run swagger ui with OpenApi 3 definition along with my backend. My Setup @GetMapping

Uploading files Kotlin Spring Boot

So, I am trying to make and upload file(s) functionality, from some blog posts and stackoverflow questions I got this solution: @PostMapping("/file/upload") fun

Uploading files Kotlin Spring Boot

So, I am trying to make and upload file(s) functionality, from some blog posts and stackoverflow questions I got this solution: @PostMapping("/file/upload") fun