Category "spring-boot"

SwaggerUI is defaulting to version 2 when a Springboot project is generated using openapi generator cli jar

I am trying to generate a spring boot project using the below yaml file with openapi generator cli jar openapi: 3.0.0 info: title: Dealer Management System

How to map specific column in entity class

I have two tables Users and UserRoles. These are the entity class I have created, @Entity @Table(name="users") public Users { @Id @Column(name = "id") private

Openapi Generator. How to generate method with HttpServletResponse as parameter?

everyone. I use strategy "Design first". I describe specification. One of the methods accepts HttpServletResponse as paramether. But i don't know ho to describe

Passing ReactiveSecurityContext into GraphQL - How to enable Spring @PreAuthorize annotation for Reactive Resolvers

After I migrated to Reactive GraphQL, Spring ReactiveSecurityContext is not accessible in GraphQL. The question here is, how I can use Spring @PreAuthorize anno

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

Spring Cloud Discovery First Configuration Server Decryption Failed

I am trying discovery first implementation with Spring Cloud. I am getting failure for password decryption. I have .jks in the classpath. The same works when I

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

best way to add a spring boot web application with JSPs to a docker container?

so i have a spring boot web application, it uses JSPs, and im supposed to put it in a container . my question is what is the best way ? ive tried to copy the pr

build spring boot (mvnw) with docker can not use cache

Spring Boot Docker Experimental Features Docker 18.06 comes with some “experimental” features, including a way to cache build dependencies. To switc

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)

MockMVC - Service method does not appeared to be called, works in postman, responding with null for test

I am trying to test the controller for creating a new league method, but it just returns null, and when I put a system.out.println in the service impl method, i

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

How to implement a list of DB update queries in one call with SpringBoot Webflux + R2dbc application

The goal of my springBoot webflux r2dbc application is Controller accepts a Request including a list of DB UPDATE or INSERT details, and Response a result summ

HttpClient Tunnel failed, got: 502

I am trying to connect a endpoint through HttpClient in my Spring boot application getting Tunnel failed, got: 502 error. I could access through postman and abl

Java Spring Webflux on Kubernetes: always [or-http-epoll-1], [or-http-epoll-2], [or-http-epoll-3], [or-http-epoll-4] despite configured resource

Small question regarding a Java 11 Spring Webflux 2.6.6+ web app, containerized and deployed using Kubernetes please. From the web app application logs, I am se

iText 7 - How to send to an API and receive/render on the other end

I am trying to send a PDF that will be created in memory from one API to another API which will then render it in an HTML page. Info about my technologies: Spri

Spring boot MongoTemplate group without _id

I want a single object from the collection that counts and calculates average. The collection looks like this: [{ "_id" : ObjectId("617822b1d128026ff4c76a76

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

Configure spring boot application using command line argument

So far I have found 2 methods to configure spring boot application at startup, one uses -D and the other one uses -- like this: java -jar -Dspring.profiles.acti

when i add opcion forEach method get java.util.ConcurrentModificationException: null

I have a problem, I have a question entity and an option entity, the relationship is one to many. but when I want to add the options in the question, it shows m