springboot 2.x 集成vue history模式的项目
springboot 2.x 集成vue history模式的项目
由于springboot2.x中弃用了EmbeddedServletContainerCustomizer,在springboot2.x中使用的是WebServerFactoryCustomizer,
对于vue项目,有两种路由模式:hash,history,查看路由中的mode属性,若不是history,请忽略本博客。
hash模式中,访问地址栏会有#的出现,而history没有#,会更美观一些。在history模式中,项目打包后不
原创
2020-12-30 09:17:35 ·
1858 阅读 ·
1 评论