摘要: 基于spring security创建基本项目框架 SpringBoot建项目步骤 建表 新建项目 (package name可以自定义,整个项目只能在该包下) 选择可能有到的依赖 (别忘了勾选SQL中的Mybatis Framework,创建项目 如果没有勾选mybatis框架,就需要手动加下面代码 <dependency> <groupId>or 阅读全文
posted @ 2022-07-25 15:16 不吃紫菜 阅读(67) 评论(0) 推荐(0) 编辑
摘要: spring boot设置日志打印为控制台输出和文件输出 日志打印 sources里建logback-spring.xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <!-- 导入其他配置文件,作为预设 --> <include resource="org/springframework/ 阅读全文
posted @ 2022-07-25 14:44 不吃紫菜 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: Redis做Mybatis的二级缓存 基于spring boot项目的前提下,使用redis数据库做mybatis的二级缓存。 阅读全文
posted @ 2022-07-25 14:22 不吃紫菜 阅读(405) 评论(0) 推荐(0) 编辑