Skip to content Skip to sidebar Skip to footer

Css And Java Script Not Rendering 404 Error Spring-boot

Here is a snippet of the paths I am using:

Solution 1:

The folder "templates" is only reserved for thymeleaf to process html. JavaScript and CSS should be in the folder "static". This folder is mapped directly to the root URL for http.

Example: File located in ... /resources/static/css/superfish.css

<link rel="stylesheet" href="/css/superfish.css" />

Post a Comment for "Css And Java Script Not Rendering 404 Error Spring-boot"