简体   繁体   中英

Issue with including css to jsp in java application

I'm developing java application and I'm using bootstrap. When I use CDN url to obtain css it works ok. But I when I tried to add css localy it didn't found it.
My project structure: 在此处输入图片说明

Maybe something with path?

Thanks to all who commented on my qyestion. So as I've searched for a correct structure of maven project with css and views I've learnt that all css/jsp/js should be located in webapp folder. best practise is to create "resources" folder and then add css/js/jsp in there. Something like this

webapp 
  |___WEB-INF
  |___resources
          |____css
          |____js
          |____jsp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM