My spring project needed to have two access points http://localhost:8080/springwebapp/ and http://localhost:8080/springwebapp/contact/jsonlist.json one for web access one for RESTful access.
To do this change your viewresolver to org.springframework.web.servlet.view.ContentNegotiatingViewResolver then use org.springframework.web.servlet.view.InternalResourceViewResolver for web access and org.springframework.web.servlet.view.json.MappingJackson2JsonView for RESTful access.
Add or update this in your spring configuration (springwebapp-servlet.xml). To use MappingJackson2JsonView you have to add the fasterxml dependency into pom.xml:
I was using this wrapper around PWA(Progress Web Apps) APIs register-service-worker and was wondering how does it detect when there is a new build and the pa...
Comments