Category "spring"

How can I do in java spring boot not try a database connection on start up?

I need to know if there is a way in Java Spring boot not to try a connection at startup. What I am trying to do is an integrated SQL server connection. I am try

Java ORM vs multiple entities

I have a class Health Check - as part of the class I record how many parasites are seen (enum NONE, SOME, MANY) and also the location of the parasites (enum HEA

set Domain on cookie using spring security when login success

How can I set the property "domain" on the users cookie when the user has authenticated from spring? Edit: id like to add domain=".mydomain.com" to cookie with

Is there any way to enable/disable a annotation by property in Spring Boot?

I have some property file like: application.properties enable.test.controller=true enable.cross.origin=false I want to enable/disable some functions based on t

Spring's @DateTimeFormat ignores wanted date format pattern

Can't get my head on how date formatting using @DateTimeFormat works. I send query with date params being: dateCreateFrom - 01.04.2022T00%3A00%3A00 dateCreateTo

How to use ValueFields in Activiti

I'm new to Activiti I I'm trying to retrieve some data from database MySQL using ValueFields interface and I don't know how to use it. This is the data I'm tryi

AWS cloudwatch logs datetime_format config combine multiple lines into one line

I use aws cloudwatch to collect aws ecs farget task's logs. The config is in the following pic: And I get the following logs, it is wired. Some lines with date

Java Spring JPA Query Error: '(',<expression>,FUNCTION or identifier expected, got '('

I'm asking the question cuz all the related posts i found are not answered Error at line 21 Screenshot Hello guys I need some help with this Query, at line 21 I

Unable to access CDI

I have a class that contains a method annotated with @PostConstruct which fetchs list of customers @ViewScoped @Named public class CustomerController e

Can we access to a list of available contexts to an object in java?

We know that we have many types of context in java. Regardless of what these types can do and where to use them, i want to know is there any way to get a list o

Spring boot native configuration

I am trying to migrate existing spring boot application to spring native. In this case, I have application.properties and application-dev.properties. package co

Can i use firebase + spring boot at same time in Ionic app

I'm building a mobile app in ionic and i want to know if i can use firebase and spring boot at the same time in the same app so i can benefit firebase real-time

Unable to Transfer spring-boot-starter-parent from maven repository

Below is my pom.xml. I am getting exceptions while fetching the spring-starter-parent from maven repo. what is it that I should specify in my relative path : Wh

Spring boot - adding a secondary data source causes nothing to get save during a integration test

In a project I am working on we added a secondary data source. This meant adding the entity factory and the transaction manager at the @EnableJpaRepositories. W

Trying to create dynamic ES Index facing java.lang.ClassNotFoundException: org.springframework.data.spel.ExpressionDependencies

Using <spring-boot.version>2.3.9.RELEASE</spring-boot.version> added following dependencies : <dependency> <groupId>org.springframew

Spring-batch flow / split after a step

I am building a spring-batch solution that contains the following process: step 1 : split a list into multiple lists step 2 : process each sub-list step 3 :

In java spring, how to best "change secret in production"?

I am currently creating a Java Spring application that works with the spring security JWT. Everywhere I look and read about the "secret string", it says should

How is the best way to extract a section from word document with Apache poi?

I´m using Apache poi (XWPF) with Springboot in java 11. I need to extract the section number 2 (title and content) from a word document with the follow nu

I'm trying to write tis code in spring boot way, how to write prepared statement in spring

I'm trying to write tis code in spring boot way, how to write prepared statement in spring public static TechInfo getTechInfo(final Connection ttdb, fi

Polymorphic list elements in Spring configuration?

Is there an easy way to have polymorphic list elements in a configuration? E.g. for the following application.yaml: Vehicles: one: type: Bicycle id: 4