spring mvc error of mime type

0

hi how I currently have a project with the following technologies

  • THYMELEAF
  • SPRING MVC
  • HIBERNATE
  • JPA
  • good at the time of generating a view with external css to which I mean to make href out of the server .. there is no problem

    but at the moment of inserting a css (if it loads it) but send this message in the google console:

      

    Refused to apply style from ' link ' because its MIME type ('text / html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

        
    asked by Monster 20.06.2018 в 18:16
    source

    1 answer

    0

    Remember that in order for thymeleaf to process these files correctly you must add the path according to its nomeclature (th: href) within the HTML.

    <link rel="stylesheet" type="text/css" media="all" 
          href="../../../css/gtvg.css" th:href="@{/css/gtvg.css}" />
    

    You can check the official documentation. Doc

        
    answered by 06.07.2018 в 04:54