SpringBlog
SpringBlog copied to clipboard
缺少一些css和js文件?
比如 http://localhost:8080/bower_components/bootstrap/dist/css/bootstrap.min.css
找了半天也没有bower_components文件夹 后发现.gitignore文件直接给屏蔽了src/main/resources/static/bower_components
作者可否提供下
Refused to apply style from 'http://localhost:8080/bower_components/fontawesome/css/font-awesome.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 3admin:1 GET http://localhost:8080/bower_components/bootstrap/dist/js/bootstrap.min.js net::ERR_ABORTED 404 admin:1 Refused to apply style from 'http://localhost:8080/bower_components/bootstrap/dist/css/bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 4admin:1 GET http://localhost:8080/bower_components/to-markdown/dist/to-markdown.js net::ERR_ABORTED 404 bootstrap-paginator.min.js:120 Uncaught TypeError: Cannot read property 'fn' of undefined at bootstrap-paginator.min.js:120 at bootstrap-paginator.min.js:208 (anonymous) @ bootstrap-paginator.min.js:120 (anonymous) @ bootstrap-paginator.min.js:208 我的页面报这些错,有登陆页面,项目运行也是很好,就是页面没有样式,一堆字堆叠在一起。
比如 http://localhost:8080/bower_components/bootstrap/dist/css/bootstrap.min.css
找了半天也没有bower_components文件夹 后发现.gitignore文件直接给屏蔽了src/main/resources/static/bower_components
作者可否提供下
确实差这个文件夹,导致样式没有,文字堆积在一起。原作者能否上传一下,感谢。
作者使用了Bower管理包,需要先安装bower,然后在命令行中执行bower install jquery;