I have made a api that should get a user by their email but I get an error. I have similar api that just works, I think it goes wrong when I send it to the controller. The error: My vue code: Authservice Controller UserRepository Answer Not sure what api is here in the Vue context but I would guess
Does Resource Server in Spring make call to Authorization Server (Spring) on every request?
I am new to Spring Boot and I am developing a simple API with few endpoints. Now I am implementing an Authorization Server (Oauth2AuthorizationServer) and Resource server with my endpoints. I have noticed that when AuthServer issues once a JWT token with provided credentials (I am using credential flow), Resource Server is able to verify the JWT even when the
SpringBoot ManyToOne saving to database issue – getting error: Field ‘user_id’ doesn’t have a default value
My situation is this: I am creating a marketplace where users can buy and sell products. I am trying to list a product with a ManyToOne relationship with the logged in user. I am getting the error: Field ‘user_id’ doesn’t have a default value. Im guessing this is because I haven’t set the user_id but I’m not sure how to.
Save Excel Data in Database in Spring boot
I have some excel files which i need to upload and save all the content in database. In my excel files sometimes some column which is not mandatory is not present but in cases where it is mandatory it will be present So How can i handle this situation single spring boot controller which run in all these 3 excel
Why many people say that flatmap in reactor is one-to-many?
I’ve read that wonderful answer about the difference between map and flatMap. And there is a picture that demonstrates flatmap: And quote: The map is for synchronous, non-blocking, one-to-one transformations while the flatMap is for asynchronous (non-blocking) One-to-Many transformations. Based on that picture and quote I understand that flatMap allows the creation of more (or fewer) elements than it was
NoSuchBeanException: expected at least 1 bean which qualifies as autowire candidate. But only on one class during MockBean?
There’s this weird problem. I’m currently testing two repository classes that I plan to use as MockBean. The snippets of the code are as follows: For ClassARepoHibernate For ClassBRepoHibernate Now then, on the testing class, I put this up: When I run this test, it gives out this error before even going to the breakpoint if I debug: This confuses
After upgrade to Spring Boot 3 Swagger UI is not accessable
I had a Spring Boot 2.7.6 app with Spring Security 5.7.5 running without problems: authentication works, I navigate through the different pages according to roles, Swagger UI is usable, etc. I don’t have a deprecated warning for your information. I migrated to Spring Boot 3.0.0 and therefore Spring Security 6.0.0. I followed the migration guides and the server starts without
Getting null value reference in One to Many mapping in Spingboot
I am trying to implement ONE-to-MANY mapping among two entities. In here designations have a location and a location have many designations. Once I added the designation it mapped fine, but it update the location table with null except id. Here I’m using the Microsoft SQL server. Application Properties DesignationMaster LocationMaster Service class of Designations Controller class of Designation I
stream is closed and Could not find acceptable representation error
i’m consuming a Api witch is returning pdf as ResponseEntity but it is not working at my api i’m trying to get de file coming from the external api and provide it at my endpoint. # External Api FeignClient class My service method my endpoint and stackTrace enter image description here i’m trying to get de file coming from the
Schedule tasks are called twice with the @SnapLock annotation
I want only one schedule method to work for many instances. I added the snap-scheduler to my project, and after that I deployed two different instances to the railway. And two entries about the execution of my method are added to the snap_lock table. Сan you explain where I went wrong? It`s scheduler config: It`s method with @SnapLock and @Scheduled