随笔分类 -  Spring框架

框架 Spring Boot 技术入门到整合 9-1 springboot整合缓存redis
摘要:0 课程地址 https://www.imooc.com/video/16790/0 1 课程重点 关于redis的介绍转载: https://www.cnblogs.com/powertoolsteam/p/redis.html 2 课程准备(相关安装包链接失效的话,可以找我要) 2.1 redi 阅读全文
posted @ 2020-12-26 09:37 菜鸟乙 阅读(64) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 8-5 整合mybatis-引入事物执行回滚
摘要:0 课程地址 https://www.imooc.com/video/16731 1 课程重点 1.1 常见应用 REQUIRED:当一个操作需要执行的时候,有事务会把操作加到事务中去,没有事务会另起一个新的事务,然后再去执行。适用于 增删改操作,执行错误会回滚。 SUPPORTS:有事务会用当前事 阅读全文
posted @ 2020-12-23 07:19 菜鸟乙 阅读(124) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 8-4 整合mybatis-自定义mapper的实现
摘要:0 课程地址 https://www.imooc.com/video/16789 1 课程重点 1.1 自定义mapper释义: 其实就是多表查询或者单表查询不同的字段,需要注意的是查多少个字段就展示多少个字段的值,其他未查的字段,即使有值,也展示为空。 另外 *mapper.xml 查询的时候最好 阅读全文
posted @ 2020-12-23 00:02 菜鸟乙 阅读(117) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 8-3 整合mybatis-使用pagehelper实现分页
摘要:见上节,已经实现该功能 阅读全文
posted @ 2020-12-22 06:53 菜鸟乙 阅读(56) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 8-2 整合mybatis-实现基于mybatis的CRUD功能
摘要:0 课程地址: https://www.imooc.com/video/16788 1 重要知识点: 1.1 mybatis常用注解: @MapperScan mybatis扫描Mapper路径,用于springboot 启动类 @ComponentScan 扫描 所需要的包,包含自用的工具类包所在 阅读全文
posted @ 2020-12-20 21:59 菜鸟乙 阅读(134) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 8-1 Springboot整合Mybatis-使用generatorConfig生成mapper以及pojo
摘要:0 课程地址 https://www.imooc.com/video/16726/0 1 本节概要 使用generatorConfig生成mapper 以及pojo 2 demo 2.1 demo(执行方式为:执行GeneratorDisplay的main方法) pom.xml(引入相关依赖) <! 阅读全文
posted @ 2020-12-12 15:15 菜鸟乙 阅读(155) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 7-3 Springboot配置全局的异常捕获 -同时兼容web和ajax
摘要:0 课程地址 https://www.imooc.com/video/16725 1 课程demo 1.1 课程demo(前两节的一个整合) ErrorHandler.java package com.example.demo.exception; import com.example.demo.t 阅读全文
posted @ 2020-12-12 10:58 菜鸟乙 阅读(80) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 7-2 Springboot配置全局的异常捕获 -ajax形式
摘要:0 课程地址 https://www.imooc.com/video/16724/0 1 demo 1.1 demo ErrorHandler.java package com.example.demo.exception; import com.example.demo.tools.JSONRes 阅读全文
posted @ 2020-12-11 07:34 菜鸟乙 阅读(159) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 7-1 Springboot配置全局的异常捕获 -web页面跳转
摘要:0 课程地址 https://www.imooc.com/video/16723/0 1 本节介绍 发生异常不在界面显示500,404等业务人员看不明白的错误,转化为易读懂的方式。 2 异常捕获demo 2.1 异常捕获demo ErrorHandler.java 控制层 package com.e 阅读全文
posted @ 2020-12-06 14:42 菜鸟乙 阅读(109) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 6-3 thymeleaf 常用标签的使用方法
摘要:0 课程地址 https://www.imooc.com/video/16722/0 1 常用标签demo(注意可以F12查看html的源码进行对照) 1.1 基本使用方式 见上节 1.2 对象引用方式 时间格式转换 a 对象的两种引用方式 b 日期如何转换格式 test.html <!-- 魏豆豆 阅读全文
posted @ 2020-12-05 15:56 菜鸟乙 阅读(223) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 6-2 Springboot 整合thymeleaf
摘要:0 课程网址 https://www.imooc.com/video/16721 1 配置文件 1.1 pom.xml 引入依赖 <!-- 引入 thymeleaf 模板依赖 --> <dependency> <groupId>org.springframework.boot</groupId> < 阅读全文
posted @ 2020-12-05 11:53 菜鸟乙 阅读(116) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 6-1 Springboot 整合freemarker
摘要:0 课程地址 https://www.imooc.com/video/16720 1 整合freemarker前置条件 1.1 pom.xml引入相关依赖 <!-- 引入 freemarker 模板依赖 --> <dependency> <groupId>org.springframework.bo 阅读全文
posted @ 2020-11-28 11:48 菜鸟乙 阅读(91) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 5-2 Springboot 资源文件配置server及tomcat
摘要:0 本节课程地址 https://www.imooc.com/video/16719 1 server配置及tomcat配置 1.1 server配置 ############################################################ # # Server 服务 阅读全文
posted @ 2020-11-21 15:45 菜鸟乙 阅读(278) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 5-1 Springboot 类读取配置文件
摘要:0 课程地址 https://www.imooc.com/video/16718/0 1 读取配置文件demo 1.1 引入依赖 <!-- 加载配置文件,引入依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifa 阅读全文
posted @ 2020-11-21 14:22 菜鸟乙 阅读(81) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 4-1 Springboot 使用devtools进行热部署
摘要:0 课程地址 https://www.imooc.com/video/16717 1 idea热部署操作条件 1.1 什么是热部署 修改java类或页面或者静态文件,不需要手动重启 1.2 配置热部署(主要针对类的修改会重启) a pom.xml 引入devtools依赖 <!-- 热部署 --> 阅读全文
posted @ 2020-11-21 11:49 菜鸟乙 阅读(89) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 3-2 Jackson的基本演绎法
摘要:0 视频地址 0.1 jackson其他配置 https://www.cnblogs.com/1446358788-qq/p/14296102.html 1 课程内容 1.1 @JsonIgnoreProperties({"a","b"}) 类上加此注解,json中忽略相应元素,不上传 1.2 @J 阅读全文
posted @ 2020-11-15 11:51 菜鸟乙 阅读(116) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 3-1 Springboot 构造并返回一个json对象
摘要:0 课程地址 https://www.imooc.com/video/16786 1 返回json对象常见差异 返回json对象时,类上也要加@RequestMapping注解。 2 返回json对象demo 2.1 返回json对象 bean类: package com.example.demo. 阅读全文
posted @ 2020-11-15 10:22 菜鸟乙 阅读(194) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 2-2 使用Spring官方STS搭建Springboot工程
摘要:0 课程地址 https://www.imooc.com/video/16785/0 1 使用eclipse创建springboot项目 1.1 准备软件 eclipse版本 luna4.4 1.2 搭建springboot项目 file--》new --》other--》Spring starte 阅读全文
posted @ 2020-11-14 15:40 菜鸟乙 阅读(126) 评论(0) 推荐(0) 编辑
框架 Spring Boot 技术入门到整合 2-1 构建spring boot 第一个demo
摘要:0 课程地址 https://www.imooc.com/video/16713 1 使用Spring官网地址生成Springboot demo 1.1 找到下载页面 a 打开 https://start.spring.io/ b 配置好相应参数,引入web依赖 c generate d 下载后将其 阅读全文
posted @ 2020-11-14 10:55 菜鸟乙 阅读(98) 评论(0) 推荐(0) 编辑
Spring课程 Spring入门篇 7-3 advice扩展
摘要:课程链接: 1 解析 1.1 advice中aspect 切面传参 1.2 通知参数名称——argNames属性, 参数为 JoinPoint、ProceedingJoinPoint、JoinPointStaticPart时,可以忽略argNames属性 1.3 其余不重要的部分 2 代码演练 2. 阅读全文
posted @ 2019-05-02 14:18 菜鸟乙 阅读(191) 评论(0) 推荐(0) 编辑