import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.GetMapping;
/**
* Listens for requests to known Angular routes.
* @throws IOException
* On error
*/
- @RequestMapping(
- method = {RequestMethod.OPTIONS, RequestMethod.GET}, //
- path = {"/policy", "/user"})
+ @GetMapping("/policy")
public void forwardAngularRoutes(HttpServletRequest request, HttpServletResponse response) throws IOException {
URL url = new URL(request.getScheme(), request.getServerName(), request.getServerPort(), "/index.html");
if (logger.isDebugEnabled())