I am able to start the server with the command line ‘java -jar jarname.jar But , while running main method of the spring boot application , server start fails ,saying that a class from an imported dependency project does not exists Also there is a warning message in the console : Can anyone please help …
Tag: spring-boot
Spring boot sort.by() No property found for type
I have MemberSchedule Entity and I want to get all items sorted by “start_time”, but error occurs with message No property start found for type Member Schedule!. I think the reason is Sort.by() didn’t recognize _ string. Because using other property like “content” works well. How…
Can I extend MapStruct methods?
I’m developing a library and I expect the library to have a mapper like so: Which is meant for internal remapping. Now, I’d like to add a feature where the user can “override” this method, in the sense that they could for example add a statement to ignore the password of the account, w…
RestTemplate parsing from Response entity to an Object
First I created this method to get me a Pokemon by Id and parse it to a POJO class using RestTemplate. So far everything works fine, but now I have to parse a list of Pokemons and I can’t find a way to do the same thing with a list of objects. I already have the response correct but cant
MongoDB Extract document
I have this Json: I would like to filter exclusive for paymentType.type equals “PILOT” and limits equals type equals “COMBAT_HOURS”. This is the result I would like to receive. How to extract the document to reach this result? Answer Query map paymentTypes if paymentType= PILOT, filter…
NullPointerException on JPA on SpringBoot
I’m new on SpringBoot and I’m making a small CRUD. When I try to make a GET request that show me a list of soccer teams from my BD called “soccer” I’ve have the following error message: My model “Equipo” is: My Repositorie “EquipoRepo” is My service “…
Bloomberg not publishing prices from QuickFixJ
I am using QuickFixJ with SpringBoot to publish market price data to Bloomberg. When publishing prices, everything is working well. However, I cannot see any prices published on Bloomberg when I hit ALLQ. Event log files : Message log files : My Java code : I cannot see what I’m doing wrong as my parame…
Trying to add a regex for password pattern matching with Spring Boot
I want to add pattern matching for a user registering a password. In my user model I have: However, when I go to register a user I am getting a 400 Bad Request. Can it be done with the @Pattern annotation? And should it go on the model? The endpoint for my controller looks like this: This is the data
How to use Netflix DGS graphql-dgs-extended-scalars JSON scalar (java/spring-boot, maven)?
I ran into the issue where I wanted to use graphql-dgs-extended-scalars, specifically the JSON scalar, but had trouble finding a clear tutorial on how to do it. I’m sure they’re out there, but just in case someone finds themselves in the same situation as me hopefully my simple explanation below w…
How to check if the type is instanceof an interface in java?
I have a class (CreateAccountRequest) that implement an interface(Iloggable), the interface has no method, Just for marking purpose. In my custom RequestBodyAdviceAdapter class, trying to check if the request is an instance of Iloggable, to proceed or ignore the request (for instance do the logging or not ) I…