Configuration: 1. Add a configuration file to springmvc
<!-- Static resource default servlet configuration--> <mvc:default-servlet-handler/>
<!-- Processing of static resources--> <mvc:resources mapping="/static/**" location="/static/" /> <!-- <mvc:resources mapping="/js/**" location="/static/js/" /> <mvc:resources mapping="/css/**" location="/static/css/" /> <mvc:resources mapping="/images/**" location="/static/images/" />--> <mvc:resources mapping="/views/**" location="/WEB-INF/views/" />
2. Direct access to the bootstrap.css browser as shown above
http://localhost:8080/static/bootstrap/css/bootstrap.css