skip to Main Content

Cookie not set in spring boot mvc – Shopify

@RequestMapping(value = "/login", method = RequestMethod.POST) public String login(HttpServletResponse response, Model modelAndView, @RequestParam String email, @RequestParam String password, @RequestParam(required = false) String redirect) { LoginDTO loginDTO = account.doLogin(email, password); if (loginDTO.getLoginMGS() == LoginStatus.LOGGED_IN) { Cookie cookie = new Cookie("token", loginDTO.getToken());…

VIEW QUESTION

thymeleaf: Static resources are not loading in while using layouts – Twitter bootstrap

My directory structure is Directory structure src/ main/ resources/ static/ CSS/ JS/ images/ template/ fragments/ header.html footer.html navBar.html layouts/ appLayout.html baseLayout.html welcome.html appLayout.html <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"> <head> <link rel="stylesheet" type="text/css" media="screen, projection" href="/static/css/bootstrap.css" th:href="@{/bootstrap.min.css}" /> <link rel="stylesheet" type="text/css"…

VIEW QUESTION
Back To Top
Search