上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 121 下一页
摘要: 示例 首先先从代码上看一下我在框架中是如何使用的分页: 注: AboutusHomepage是实体类 1.Controller @RequestMapping public String index(@RequestParam(value = "pageNo", required = false, 阅读全文
posted @ 2023-05-28 22:17 与f 阅读(3580) 评论(0) 推荐(0)
摘要: 首先 Vo: /** * 用来返回给前端展示列表的数据实体 */ @Data public class CourseVo implements Serializable { private static final long serialVersionUID = 1L; private String 阅读全文
posted @ 2023-05-28 20:32 与f 阅读(2120) 评论(0) 推荐(0)
摘要: 一、引言 MP自带的条件构造器虽然很强大,有时候也避免不了写稍微复杂一点业务的sql,那么今天说说MP怎么自定义sql语句吧。 二、具体实现 使用注解实现: 在我们Mapper接口中定义自定义方法即可。 /** * @Date: 2019/6/10 14:40 * @Description</spa 阅读全文
posted @ 2023-05-28 19:29 与f 阅读(4935) 评论(0) 推荐(0)
摘要: 搭建一个多模块系统--admin后台的一些配置 testblog-admin (验证打算用springboot+Security+Thymeleaf) 1. pom.xml 文件 <!--SpringSecurity启动器--> <dependency> <groupId>org.springfra 阅读全文
posted @ 2023-05-26 17:36 与f 阅读(89) 评论(0) 推荐(0)
摘要: java函数式编程stream流操作lambda表达式使用方法引用用法等练习 @Test void test01() { System.out.println("111"); List<Author> authors = getAuthor(); //stream流打对象中一个字段 authors. 阅读全文
posted @ 2023-05-25 10:47 与f 阅读(30) 评论(0) 推荐(0)
摘要: 一 testblog-home模块(打算jwt做安全验证) application.yml # 项目相关配置 testBlog: # 名称 name: qiqi # 版本 version: 1.0.0 # 版权年份 copyrightYear: 2023 # 实例演示开关 demoEnabled: 阅读全文
posted @ 2023-05-20 15:28 与f 阅读(91) 评论(0) 推荐(0)
摘要: 搭建一个多模块系统(一) 把项目分为三个模块,有一个父模块管理 testblog testblog-framework testblog-admin testblog-home testblog.pom <?xml version="1.0" encoding="UTF-8"?> <project 阅读全文
posted @ 2023-05-20 14:37 与f 阅读(45) 评论(0) 推荐(0)
摘要: springboot开启跨域spring security也开启跨域配置 浏览器 同源策略,导致跨域失败,添加了security框架后,因为安全框架有一系列的过滤器,即使springboot把跨域打开,security的过滤器也可以能拦截。 所以,如果要在服务器端设置,要改两处 方法一: 先开放sp 阅读全文
posted @ 2023-05-19 17:39 与f 阅读(734) 评论(0) 推荐(0)
摘要: ruoyi自定义登录中ThreadLocal的使用 (它的ThreadLocal封装在AuthenticationContextHolder) 登录代码: /** * 登录验证 * * @param username 用户名 * @param password 密码 * @param code 验证 阅读全文
posted @ 2023-05-19 09:46 与f 阅读(467) 评论(0) 推荐(0)
摘要: Spring Security配置(包含WebSecurityConfigurerAdapter过时问题) pom.xml文件引入以下依赖 <!--spring security--> <dependency> <groupId>org.springframework.boot</groupId> 阅读全文
posted @ 2023-05-17 16:54 与f 阅读(1175) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 121 下一页