I’ve created table with 8 columns: In fact each column (tag “td”) should serve as a button and after clicking send me to controller (@PostMapping or @GetMapping), where I will try to read th:value. How to make it? Instead of th:attr=”action=@{/}” I’ve tried to use th:href=”@{/}” – does not work. I’ve tried to insert between tags “td” the Form Button,
Tag: controller
JavaFX – how to display values of two table columns in TableView with different order from one ObservableList?
University student here currently working on a tournament application project, and I’ve got this current issue with GUI: My matchmaking algorithm takes the player’s numbers and matches the lowest number with the highest, for example if we have 8 players then we will have; P1 vs P8, P2 vs P7 and so on. I am currently trying to display this
Why is Spring telling me the controller is an unknown entity upon saving a user?
After a few hours of running against the wall with this code, I’ve just about had it. This error is as indescriptive as can be. My User entity: https://pastebin.com/fqRJmMCc TicketController controller with just the function that holds user info: https://pastebin.com/n7jeciAM User service and repository essentials: https://pastebin.com/acYUF7sN Long story short is that the User object should only need a mail address,
Postman returns null value after a successful post request
When I do a post request on Postman I receive a “200 OK” status. But doing a get request returns null JSON values This is my user class The UserDaoService class and the controller This is the post request I make I didn’t pass in an ID because that is covered in the backend. On making a get request the
springboot override controller methods
I have to ask because none of the answers I found can help me to solve my problem. I have controller I want to override its methods because one specific customer has specific logics, with controller that can have exactly same methods signatures or overriding methods with RequestBody extending the original requests. I tried to define an interface for controllers
Testing a Spring ControllerMethod using Mockito which alters an entry in the db with Optional.map NullPOinterException
Im currently Testing my Controller methods. In one Method I add a Reisepunkt(travelpoint) to a Reise(travel), which is already saved inside a database. Using the generated-request.http API I can use the method to make entrys into the db. Now i wanted to write a test method just so I can get the hang of it. I always get a NullPointerException
How to scan for annotations in methods only in specific classes using reflection library java?
I have an annotation @API which I assign to all the routes i.e RequestMapping in a controller in java spring.What I want to do is,First scan all the classes in a package that are annotated with @Controller and after scanning all the controller classes,I want only to scan for Methods with annotation @API in only these controller annotated classes. How
How to save the request body after reading it in the ServerAuthenticationConverter?
Guys! maybe someone faced the problem of getting the request body.. I am trying to friend Spring WebFlux + Security: I use SecurityConfig where I set for check authentication I have a custom Converter (AuthDataConverter) and a custom Manager (AuthManager). When I do POST http Request I am falling in Converter: inside of the Converter – I get Headers and
Controller Endpoint Naming Convention
I have a controller endpoint and I need help with the naming convention. Basically, the endpoint is supposed to find a customer by their Id/Email (which is sent in the url of the request). Thus I need to have two endpoints, one for users/{id} and one for users/{email}. The issue is, the above wouldn’t work as the routes are exactly
Can’t access controller and its methods from another controller
I’m not 100% sure how to best describe this issue but I will try my best. I am developing a music application and have different windows within one and have loaded panes into a little in app window shown below: The bit that changes from a green button to the playlist screen is the window that has FXML files loaded