概念:webjars 以jar包的方式引入静态资源
引入步骤:
1、webjars官网导入需要的静态资源maven依赖 (例:jquery)
点击maven
复制依赖,导入pom文件
访问jquery.js
webjars路径为类路径下
web访问url路径为 :http://localhost:8080/webjars/jquery/3.3.1/jquery.js
作者:记性不好的阁主
引入步骤:
1、webjars官网导入需要的静态资源maven依赖 (例:jquery)
点击maven
复制依赖,导入pom文件
webjars路径为类路径下
web访问url路径为 :http://localhost:8080/webjars/jquery/3.3.1/jquery.js