项目启动欢迎页没有样式

diexu1719 2017-09-27 03:20:51
<welcome-file-list>
<!-- <welcome-file>/html/login.html</welcome-file> -->
<welcome-file>/html/map.html</welcome-file>
</welcome-file-list>
配置了欢迎页,显示出来的却没有样式
...全文
241 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
靠谱么 2017-09-27
  • 打赏
  • 举报
回复
应该是你登录的时候拦截了吧 看看配置文件吧
guohuanhuan2025 2017-09-27
  • 打赏
  • 举报
回复
你的css样式都没有引入到页面吧
SuperKokus 2017-09-27
  • 打赏
  • 举报
回复
被拦截了吧。
diexu1719 2017-09-27
  • 打赏
  • 举报
回复
没有大神求 100分!!!!!!!!!!!!!
diexu1719 2017-09-27
  • 打赏
  • 举报
回复
spring-MVC中已经加上了静态资源过滤了,项目启动的时候还是没样式,但单独访问就有 <mvc:resources location="/js/" mapping="/js/**" /> <mvc:resources location="/css/" mapping="/css/**" /> <mvc:resources location="/html/" mapping="/html/**" /> <mvc:resources location="/fonts/" mapping="/fonts/**" /> <mvc:resources location="/img/" mapping="/img/**" /> <mvc:resources location="/less/" mapping="/less/**" /> <mvc:resources location="/images/" mapping="/images/**" /> <mvc:resources location="/csv/" mapping="/csv/**" />
diexu1719 2017-09-27
  • 打赏
  • 举报
回复
项目启动后单独访问就可以 , 求大神啊

67,515

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧