I want to write a test for controller. Here is test snippet:
@RunWith(SpringRunner.class) @WebMvcTest(WeatherStationController.class) @ContextConfiguration(c
In my case it was about a missing starting slash /
/
I've appended / to both RequestMapping value and MockHttpServletRequestBuilder post urlTemplate parameters as first character.
RequestMapping value
MockHttpServletRequestBuilder post urlTemplate