IT Nursery
I’m using Spring to define stages in my application. It’s configured that the necessary class (here called Configurator) is injected with the stages. Now I need the List of...
  • May 29, 2022
  • 0 Comments
IT Nursery
Is it possible for a Spring controller to handle both kind of requests? 1) http://localhost:8080/submit/id/ID123432?logout=true 2) http://localhost:8080/submit/id/ID123432?name=sam&password=543432 If I define a single controller of the kind: @RequestMapping (value =...
  • May 28, 2022
  • 0 Comments
I’m looking for the different ways to map an enum using JPA. I especially want to set the integer value of each enum entry and to save only the...
  • May 28, 2022
  • 0 Comments
IT Nursery
When creating tests and mocking dependencies, what is the difference between these three approaches? @MockBean: @MockBean MyService myservice; @Mock: @Mock MyService myservice; Mockito.mock() MyService myservice = Mockito.mock(MyService.class); 2 Answers...
  • May 28, 2022
  • 0 Comments