后端学习
文章平均质量分 68
zhenwei zhao
这个作者很懒,什么都没留下…
展开
-
前后端整合vue+springBoot+gateway。解决vue打包之后放到springBoot的static文件夹无法访问,gateway转发静态资源文件的失败的问题
当然不会,它那么多模块它怎么会知道访问哪个的static,这个时候我们就需要使用gateway的断言指定一个模块的static是作为静态文件夹。如果是vue打包文件,因为打包生成的是index.html,我们知道index文件是可以省略不写的,那么他的访问路径就是 http://localhost:8080。如下方结构:我们想访问a.txt文件,假设启动端口为8080,那么访问路径就是 http://localhost:8080/a.txt。我们只需要作为静态资源文件的模块,注意一定要是这个模块。原创 2022-09-19 17:38:58 · 1925 阅读 · 0 评论 -
利用mybatis-plus创建一个SpringBoot实例
创建一个SpringBoot框架配置maven /pom文件<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- myba原创 2022-04-11 18:18:21 · 372 阅读 · 0 评论