摘要: Springboot 拦截器 1.什么是拦截器? 拦截器可以根据 URL 对请求进行拦截,主要应用于登陆校验、权限验证、乱码解决、性能监控和异常处理等功能。 2.定义拦截器步骤 在 Spring Boot 项目中,使用拦截器功能通常需要以下 3 步: 1.定义拦截器; 2.注册拦截器; 定义拦截器 阅读全文
posted @ 2022-08-17 23:50 Hello、Lin 阅读(1874) 评论(0) 推荐(0)
摘要: 目录 动态SQL if语句 动态SQL if+where语句 动态SQL if+set语句 动态SQL choose(when,otherwise)语句 动态SQL trim语句 动态SQL SQL片段 动态SQL foreach语句 动态SQL if语句 <select id="selectUse 阅读全文
posted @ 2022-08-17 22:17 Hello、Lin 阅读(44) 评论(0) 推荐(0)
摘要: Springboot项目启动后执行特定方法 Springboot给我们提供了两种“开机启动”方式:ApplicationRunner和CommandLineRunner。 这两种方法提供的目的是为了满足,在项目启动的时候立刻执行某些方法。我们可以通过实现ApplicationRunner和Comma 阅读全文
posted @ 2022-08-17 20:44 Hello、Lin 阅读(626) 评论(0) 推荐(0)