New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
petclinic.css does not exist #653
Comments
The petclinic.css should be generated from the less file which located at "spring-petclinic\src\main\less*". Mine here, the styling is working. |
What you can also do is create a css directory in the static.resources directory and paste the less files in there. |
Thank you for the reply, when I try to compile the less files in vs code, there was this error came up ".label-success is undefined in file ...spring-petclinic-main\src\main\less\petclinic.less line no. 181", and I've searched the whole project, there is no other definition for ".label-success", is the less file complete? |
I tried this method, it didn't work for me, the error code is 404, my IDE is vs code, could it be vs code issue? |
I am also facing same issue. |
CSS files are generated from the Maven build, using the less file in spring-petclinic\src\main\less*.less -Using local maven executable binary -using the maven wrapper After the build success, you can run the spring petclinic application and access it from localhost:8080 and the styling will be working |
css gets generated using wro4j. My issue for css was resolved using same steps. |
As others have indicated, the CSS is generated as part of the build. If you'r running petclinic from an IDE, the readme provides some more explanations. |
Hi there, the styling of the site displaying incorrectly, Chrome debug console shows that request for petclinic.css was failed with an error code of 404, and i looked through both my local and online repository, and I couldn't find the file in path "/resources/css/petclinic.css". Could you guys provide the css file please? Thanks.
The Chrome debug console screenshot:
The text was updated successfully, but these errors were encountered: