![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
原来是莉婶
这个作者很懒,什么都没留下…
展开
-
spring boot 整合redis
spring boot 整合redis,基于mall项目启动redis在redis安装目录下,执行redis的启动命令:redis-server.exe redis.windows.conf2.下载redis可视化工具RedisDesktopManager,并测试连接3.在pom中添加依赖。4.application.yaml文件中加入redis的配置。5.增加redis的增删改并设置超时时间6.增加手机验证码的controller层和service层加以验证。参考 微信公众号《ma原创 2020-09-04 10:05:57 · 116 阅读 · 0 评论 -
springboot集成mybatis-generator
springboot集成mybatis-generator总结是在mall项目的学习记录。在pom文件中加入指定的依赖后,尤其注意在targetProject标签中,使用的是项目相对路径,并且必须要使用 . 来代替项目名。如果直接写成项目名,如:targetProject=” mall-tiny\src\min\java” .会报错如下:The specified target project directory mall-tiny\src\main\java does not exist参原创 2020-09-04 10:06:16 · 132 阅读 · 0 评论 -
springboot的ContextPath配置ddl_auto: create
springboot中的application.yaml配置1.ContextPath配置Spring boot默认是/ ,这样直接通过http://ip:port/就可以访问到index页面,如果要修改为http://ip:port/path/ 访问的话,那么需要在Application.properties文件中加入server.context-path = /你的path,比如:spring-boot,那么访问地址就是http://ip:port/spring-boot 路径。其中ddl_au原创 2020-09-03 11:41:04 · 313 阅读 · 0 评论 -
部署springboot项目和前端vue(一)
springboot项目代码编写完成后,前后台调用无误,接下来需要部署,原理如下:一、将springboot项目通过pom文件将代码和静态资源分离打包,得到 jar包,resource、lib目录。二、将vue项目打包成dist,将dist目录下的文件拷贝到resource/static目录下。三、将整个服务拷贝到服务器,启动jar包命令:java -jar -Dloader.path=....原创 2019-07-22 19:23:46 · 4545 阅读 · 0 评论 -
vue自定义打包路径--springboot前后端分离(部署二)
vue自定义打包路径需要修改三处:1.在代码根目录下的index.html中增加 如图所示。2.在src目录下的router目录下,在index.js中,增加:base: ‘/VmallAdmin/’, 如下图所示:3.在项目路径下的config目录下,修改index.js。在build下将原来的assetsPublicPath:’/’修改为assetsPublicPath:’...原创 2019-05-13 16:51:26 · 940 阅读 · 0 评论 -
Spingboot+shiro+redis实现权限认证(附源码)
一、shiro和SpringSecurity的对比目前比较流行的安全管理框架是shiro和SpringSecurity据我了解所知shiro简单易用SpringSecurity相对比较复杂,可扩展性好二、shiro的作用1、验证用户身份2.用户访问权限控制,比如:1、判断用户是否分配了一定的安全角色。判断用户是否被授予完成某个操作的权限3.在非 web 或 EJB 容器的环境下可以任...原创 2019-08-28 18:55:10 · 1041 阅读 · 0 评论