![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
Cccter
这个作者很懒,什么都没留下…
展开
-
springboot项目浏览器加载Resource interpreted as Stylesheet but transferred with MIME type text/html 报错
近期在整理springboot有关知识点。在写项目的时候遇到了Resource interpreted as Stylesheet but transferred with MIME type text/html的报错把解决该问题的思路写下来。项目运行时打开浏览器窗口访问login页面发现页面的样式没有显示,并且报了个不知名的错误。一开始思考是不是资源路径位置写错,导致样式...原创 2019-07-01 19:32:23 · 960 阅读 · 2 评论 -
springboot 静态资源加载问题
由于最近在写springboot项目,遇到了一些关于静态资源的问题,所以总结下:项目用到了thymeleaf模板在访问login页面时 css以及js样式无法加载报404然而页面已经显示表示页面放的路径没什么问题项目中静态文件是存放在templates下经过检查发现,在springmvc配置中加了注解@enableWebMvc。该注解使用会默认清空springmvc的自动...原创 2019-06-29 15:59:12 · 430 阅读 · 0 评论 -
springboot 通过gradle构建工具 配置druid监控
1.首先我们应该先导入druid的包gradle导入druid依赖:implementation 'org.springframework.boot:spring-boot-starter-log4j'具体导入依赖如下:2.修改配置文件application.ymlspring: datasource: url: jdbc:mysql://localhost...原创 2019-07-04 01:01:17 · 2028 阅读 · 0 评论