Category "spring"

Thymeleaf can't find templates

I have a Spring Boot Thymeleaf Java project that works perfectly in my local git. Thing is, I tried to clone this same project from my GitHub repository and now

Error while triggering quartz job in spring boot, kubernetes

I'm using Quartz Scheduler in Spring Boot with Postgres as Database. It was working fine in local enivornment with both dev and prod profile, but once we deploy

how to add external file to maven package output jar during runtime?

I have a spring maven project. In that Project (root folder), I have folder called config which contains multiple folder like t1, t2, t3 etc, Inside of each fol

How to write Java that calls a package function? Making a slight change to working Java code

With the help provided in the response to my previous question: Invalid Index trying to call a simple Oracle PROCEDURE from Java I was able to call an Oracle pa

Got a java.lang.IllegalArgumentException when sending a Java object by the dynamic TCP/IP integration flow?

Gary Russell helped me some time ago with the following 'DynamicTcpServer' flow (see Building a TCP/IP server with SI's dynamic flow registration) having now a

Throwing java.lang.IllegalAccessException module java.base does not open java.util.concurrent when running Corretto on Java

I have 2 microservices: serviceBFF, serviceCore. Stack Spring Boot 2.6.6 Amazon Corretto 17 (Docker) OpenJDK 17 (local) Docker (latest) serviceBFF calls a REST

Consider defining a bean of type 'Mapper' in your configuration [Spring-Boot]

mapstruct doesn't work on my Spring Boot project. I added dependencies, path, Mapper annotations (componentModel="spring") in the mapper interface and still get

Spring Batch: One reader, multiple processors and writers

In Spring batch I need to pass the items read by an ItemReader to two different processors and writer. What I'm trying to achieve is that...

Failed to deduce bean type for org.springframework.boot.actuate.autoconfigure.metrics.JvmMetricsAutoConfiguration.jvmHeapPressureMetrics

I am trying to upgrade Spring-boot from 2.2.5.RELEASE to 2.6.6 and I am encountering few issues with spring-boot-starter-actuator dependency. This service runs

Canno't deploy Spring boot app to Tomcat9 FAIL - "Application at context path"

when I try to start the app through the manager I get FAIL - Application at context path [/imoveis-0.0.1-SNAPSHOT] could not be started FAIL - Encountered excep

Spring Boot: Optional mapping of request parameters to POJO

I'm trying to map request parameters of a controller method into a POJO object, but only if any of its fields are present. However, I can't seem to find a way t

how can it solve correct converting to map from vo object in spring?

parameter VO in spring public class Person { private String name; private int age; private String job; public void setName(String name){ thi

Hibernate handles id assigning instead of database

I have an auto-increment PK in a table and I want hibernate to handle id assigning instead of database. As my understanding the @GeneratedValue(strategy = Gener

Upgrade from Elasticsearch 5.2.1 to 6.8.22 encounter issue: java.lang.LinkageError

Our project need to upgrade elasticsearch from 5.2.1 to 6.8.22. We encounter an issue now. The war can be deployed successfully in jboss server, but will contin

How can I delete a row by its SKU instead of its ID?

I try to delete the row using the sku of the product. I'm using spring boot and angular. I got an error when I added the sku on my button like this one (click)

Spring Security "Administrator" Access to all URLs

In Spring Security configuration I have something like following: http.authorizeRequests() .mvcMatchers("/admin").hasRole("ADMIN") .mvcMatchers("/studen

Custom IdentifierGenerator returns null

So, I want to customize the ID for a "FriendID" with IdentifierGenerator, and I want to make it as simple as possible first just to make sure it works. Been wat

Spring one Controller for nested entities

I'm working on a school project and I'm not sure how to implement this case. I would like to implement it as best practice. Right now I have 3 entities -> St

E-commerce background business process Java and Spring

I need create a ecommerce api using Java and Spring. But how create a background process, for example: After place order, i need send confirmation e-mail, wait

Invalid entry CRC in Spring boot

Hello so today I planned to do some work but now, all my projects are --- I dont know what happened, the same errors occurs in intellij, vscode. Can someone gui