Category "spring"

UnmarshallerImpl finalize() method leads to memory leak

I'm using webServiceTemplate in my multithread Spring app. There are my jaxb dependencies: compile('javax.xml.bind:jaxb-api:2.3.0') compile('org.glassfish.jaxb:

Display value of selected element of p:selectOneMenu and edit it

i am trying to select an object from a select many menu, which displays the available objects just fine. Then, when i select the one i am interested in, i wish

Is there a way to return collection instead of entity in @Repository's @Query

I have a query: @Query( value = "select name, age, now() from received.scheme ;", nativeQuery = true ) public {???} selectData() I cannot create or r

file from one node to another node?

I would like to add a database to it so that the information is stored.

is there a way to create a java class lombok field with a period or other custom character?

How can I make a field name have a period in it? Why? Because this eventually gets translated into JSON that is passed to a service, and the field needs to have

Spring cloud config using ssh instead of https

I am banging my head around why spring cloud config is using ssh even when i try to provide https uri in the application.yaml. Here's my quick config file: spri

Distinct and List of other column in postgresql

I am using postgres DB and i have table with two column name and sal . name Sal Raunak 10000 Raunak 5000 Rahul 500 Raunak 300

Cassandra Spring No Converter Found Capable of Converting from Type Instant to type Long

Am getting a No converter found capable of converting from type Instant to type Long while using Spring and Cassandra. I have 2 Instant fields writtenDate (in t

Combine @Component and @ConditionalOnBean into one annotation

I want to combine two Spring annotations into a single one. More exactly I want to combine @Component and @ConditionalOnBean into one annotation named @SubCompo

Declarables and MultiRabbit

I'm using spring-multirabbit library : rabbitmq: host: localhost port: 5672 username: guest password: guest multirabbitmq: enabled: true

Spring application.properties is grayed out with Spring Initilizr

I am new to spring and trying to use Spring Initilizr for my project. I am using the code that was generated by this tool after adding dependencies for 'Spring

Spring QuerydslPredicate - exception handling for bad types

I didn't find any proper solution for this so maybe you can assist. Basically issue is ultra simple I want to do some kind of "better looking" error handling wh

Log4j2 vulnerability and Lombok annotation @log4j2

We are using spring boot 2.1.5 and starter parent as pom dependency. Spring boot is using default logback for logging and we haven't explicitly switched to Log4

Compare two Lists and get the difference [duplicate]

I have two Lists which I get - one from xlsx file, the second one - by select from database @Component public class ReadExcelDemo implements C

How to find which method is called when going to route?

I am getting too many redirects error I and want to find in which method this happens. The url I am going is https://localhost:8443/OpenELIS-Global/ I tried sea

Can Spring Boot detect when the Google PubSub connection is down?

I've been googling and can't seem to find an answer to this question: Can a Spring Boot app get a lifecycle notification if its underlying broker connection (ei

Can you listen for SpringCamelContext status?

Using EventNotifierSupport, I can listen for CamelContextStartedEvent. However, I need to add one more root to the context, after all the other routes have alre

Moving to the Spring Boot. Migration of logic from the old main class

I am very new to Spring Boot and development, so, I am stuck with a problem. I have an old project that needs to be migrated to Spring Boot. The original main m

IllegalAccessError: ClassA and class B are in unnamed module of loader 'app'

I have a spring @Configuration bean which initializes a class A. This class A, in its constructor, calls another static method in class B. When spring initializ

Correct way to use substatemachine in spring-statemachine

I'm not sure I clearly understand how to use substates. I didn't find any good explained example of correct spring state machine configuration, so I would be gl