Category "spring-boot"

Maven is not using Java 11 - Fatal error compiling: invalid target release: 11

I am trying to compile my project with Java 11. When I try to run the application with Java 8 as the Java version in pom.xml, it works fine. But when I try to r

Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test

I am using Spring Data JPA and Spring Boot. The layout of the application is this main +-- java +-- com/lapots/game/monolith +-- reposi

Swagger UI being blocked by Spring Security

I am trying to implement spring security with JWT token, I am trying to achieve authentication with method level authorization My configuration looks like this

getting Caused by: org.hibernate.QueryException: cannot dereference scalar collection element: roles

I have this class , and i'am trying to acess mobileNumbers and roles from the user table , but being lazy intialized i keep getting 'lazy intialization error. I

spring-boot ReactiveClientRegistrationRepository not found

Environment: Spring Boot 2.3.1, Java 11 I have tried out a few things already (also comparing with the sample-app by spring), but so far I have been unsuccessfu

Customize keycloak error page with spring boot

I use keycloak-spring-boot-starter to protect my rest-service from unauthorized access. The authentication works as expected, but if the authentication fails, t

Swagger UI not working on websphere liberty with spring boot and https

Recently we migrated from websphere traditional to websphere liberty and since then we are not able to access swagger-ui from the browser. We are using a spring

404-not-found-while-running-spring-boot-rest-api

While running springboot restservice application got 404 error. I am using spring boot, jersey rest. I have tried GET requests http://localhost:8080/dunames bu

How to perform custom authentication with kubernetes Ingress

I have deployed few services in kubernetes and using NGINX ingress to access outside.(Using EC2 instance for all cluster setup). Able to access service through

How to use OpenAPI "oneOf" property with openapi-generator-maven-plugin when generating Spring code

I am developing an application with an Angular frontend and RESTful Spring Boot Backend I found this very handy maven plugin openapi-generator-maven-plugin from

spring boot doesn't shows custom error pages

I added spring-boot-starter-thymeleaf dependency to my project that using spring boot 2.3.1.RELEASE and placed error.html file inside src/main/resources/templat

How to handle "org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error" in Spring?

I'm adding an API to an existing Spring Boot project using @RestController. My Spring Boot experience is: This is my first time using it. The RestController wor

AWS XRay wrong service map when using OpenFeign with AppMesh and AWS Service Discovery

I'm testing interservice communication with Spring Boot Rest services deployed on AWS with AppMesh and Service Discovery enabled. To be able to send messages fr

spire.pdf in a docker container

I create an application that handle pdf and convert them to pdfa3 and also convert the document onto facturX. I developped my application using Springboot and i

Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository' in your configuration

I am using spring oAuthClient version 5.2.4.RELEASE By following the document link of spring security https://docs.spring.io/spring-security/site/docs/current

Vaadin 23 Flow - Spring Boot - Live Reload not working

I recently updated my Vaadin Flow Project to the newest Version 23.0.1. It all did great, but the LiveReload (detecting Java-FileChanges) doesnt work at all (It

Override the handleNoHandlerFoundException

I want override the Spring Boot default result when calling a not-existing route: { "timestamp": "2022-03-20T17:01:07.453+00:00", "status": 404, "er

Spring Boot response has already been committed exception for request to resources

I'm using Spring Boot (v1.2.4) deployed on WildFly 8.2 server. On the application I'm using font awesome v4.3. I get the "response already committed exception"

When does the hibernate session gets closed

I have created the following entities. @Entity public class Student { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id;

Getting 404 error in spring boot even though method is logging statements

My app uses Angular on the frontend and Spring Boot (w basic authentication & Spring security) on the backend. I'm using a proxy for api requests to my back