Category "spring-boot"

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

Cannot deploy spring boot application with docker to aws elastic beanstalk with eb cli using docker compose

I have a problem here! I cannot deploy spring boot application to AWS Elastic Beanstalk with eb cli using docker-compose.yml Here my code! Here my simple API @R

How can I delete the product and corresponding logs?

I want to delete all the product logs of a specific product depending on its product_id(FK). I created product logs to monitor when the product it's created and

Sync User Keycloack with User spring boot app

Hello I'm on a spring boot application with a keycloak authentication server and I would like to save the users on the spring database does anyone have a track

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

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

Every bean/class instance created twice in spring boot application

I'm using java based configuration, using only @Component and @Scheduler Annotation in my other classes, but I don't know why all classes in class path loaded t

java.lang.IllegalStateException: No directory at file how to solve this

Error occures error massage Error massage ,,, Properties file picture of properties file

Nginx reverse proxy with prefix not working correctly with spring boot app

Hi Stackoverflow community ! i am trying to access to my spring boot app behind nginx reverse proxy in docker swarm architecture. the problem that when i go to

Excluding @bean from ComponentScan

I have lot of beans declared in a single class package com.example; @Configuration public class MainBeanClass{ @Override @Bean("cachingSession") @Lazy public C

Issue :: Microsoft Cognitive Services :: client-sdk :: Azure

I am trying to use Azure cognitive services and trying to convert "Text To Speech". I am able to convert the Text to Speech successfully on my local machine. Th

How use projections in spring-data-jpa?

I need to get all the information about the ticket in one request, also the name, author, and year of the book. I have implemented this : I create interface Tic

UnsupportedPointcutPrimitiveException: Pointcut expression 'getEncryptedValue()' contains unsupported pointcut primitive 'get'

I was using spring-boot-starter-parent 2.0.3-RELEASE, using pointcut primitive 'get' in my aspect like below. @Pointcut("get(* *) && @annotation(com.tes

Why does using 'Optional<>' give me the next error'Failed to convert from Optional to Mono?

I am doing a functionality that allows you to save users, but before that it does a validation to validate if the nick exists in the database, when I run I get

Spring boot addFlashAttribute not displaying message in HTML

I've been searching here and online how to use addFlashAttribute in the best way and it's not working for me no matter what I do. I have a Student model which I

JPA: Data integrity violation instead of Upsert

I have this entity with these fields and this primary key: @Getter @Setter @Entity @Builder @NoArgsConstructor @AllArgsConstructor @Table(name = "MY_TABLE", sch

Exception never seems to get thrown when an AxisFault is found

I have this catch statement: } catch (Exception e) { if (e instanceof AxisFault) { LOGGER.info("AxisFault: " + e); if (((AxisFault) e).getFa

CORS requests blocked when hitting k8s service exposing Spring Boot API

I currently have an Angular application trying to call a Spring Boot application with simple HTTP queries. Both of the applications are running on their own pod

Is the latest Spring cloud task incompatible with spring-boot 2.6.6?

I am trying to use the spring-cloud-task-core version 2.4.1 with the spring-boot version 2.6.6 (from the 2021.0.x release train). This is showing me the below e

Spring environment variable values computing

Can I somehow use environment variable to set a properties value, but using computing, something like this: test2: ${TEST+1:2} test: ${TEST:1} As you can see