上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页
摘要: 前言 先感谢涛哥写了这么好的文章,附上原文学习地址:涛哥的shiro教程 学习完孤傲苍狼和涛哥的博客,觉得分享知识是一种进步,原因很简单:能把别人教会了的博客,一定是好博客。我始终相信,写博客的受益者之一永远都有自己。 ... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(14) 评论(0) 推荐(0)
摘要: docker search tomact docker pull tomcat:8 docker run -d -p 8080:8080 tomcat:8 docker ps 找到tomcat容器的ID ,我这里的ID是:dd6657d9b796 ... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(38) 评论(0) 推荐(0)
摘要: 一、Realm基本架构 为了快速上手,我们需要知道的是,Shiro将数据库中的数据,存放到Realm这种对象中。而Shiro提供的Realm体系较为复杂,一般我们为了使用Shiro的基本目的就是:认证、授权。 ... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(160) 评论(0) 推荐(0)
摘要: Service如何集成MP @Mapperpublic interface RoleMapper extends BaseMapper {}public interface RoleService extends IService{}@Service@Requ... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(22) 评论(0) 推荐(0)
摘要: select * from test_tablewhere 1 = 1 0"> AND PK_ID IN ) OR PK... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(178) 评论(0) 推荐(0)
摘要: 一、元数据格式 提示文件编写在META-INF的spring-configuration-metadata.json文件下。元数据文件的大部分是在编译时通过处理所有用@ConfigurationProperties注释的项目自动生成的。 但是,... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(321) 评论(0) 推荐(0)
摘要: 一、准备 有一个苹果类,具有4个属性。 @Data@NoArgsConstructor@AllArgsConstructorpublic class Apple { private Integer id; private Strin... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(117) 评论(0) 推荐(0)
摘要: META-INF/spring.factories文件 如何让我们的starter里的@Configuration在使用者的项目里生效呢? 在SpringBoot的启动类中,@SpringBootApplication注解的代码... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(124) 评论(0) 推荐(0)
摘要: 一、引入依赖 org.springframework.boot spring-boot-starter-aop 二、编写扫描的注解 @Retention(RetentionPolic... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(11) 评论(0) 推荐(0)
摘要: 一、哨兵模式概述 哨兵模式想解决什么问题 在Redis集群部署的背景下,如果主服务器宕机,那么需要人工手动将从服务器切换成主服务器。这会导致一段时间内Redis服务器(的数据槽)不能用。 哨兵模式是一种特殊的模式,首... 阅读全文
posted @ 2022-07-17 12:13 小大宇 阅读(134) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页