Skip to content
Advertisement

Tag: spring

Token exchange in Spring OAuth2 client credentials flow

I have following Spring Security configuration: And following configuration is used: Now I need to do impersonation(https://datatracker.ietf.org/doc/html/rfc8693). So I need to pretend as some user. I need it because of “current user” logic inside some-app application. How can I reconfigure to achieve it ? P.S. I tried to google it but I haven’t found anything relevant. Answer RFC 8693 Token

How to solve error: package org.springframework.context.annotation does not exist import org.springframework.context.annotation.Bean?

After updating the gradle wrapper to version 7.3.2 I get the following error when trying to build my spring boot project: Why is this happening? Update: Found the problem, but do not know how to fix yet. I have multiple modules in my project. I have a “common” module which is used by other modules. With the old gradle version

JPA Cast BigDecimal as string

I’m using JPA to query a database, but something strange happens. In some cases the cast works and compiles fine, but with a BigDecimal it doesn’t let me use the cast to make a LIKE with a String. Here is a part of the code that works: pesoObjetivo is a data type Double But when I try to perform the

ClassCastException being encountered even with correctly imported or assigned classes

I am receiving a ClassCastException randomly/intermittently. I already tried clearing and invalidating my local caches, doing an mvn clean install and depedency reimports. Still the issue persist. It also exist on the deployment of my microservice to aws. My directory structure is as follows. This BopAccountType (see screenshot) classes are the same with casa directory in terms of structure of

Advertisement