姜源の云笔记
  • 首页
  • 分类
  • 工具
  • 标签
  • 归档
  • 关于
  • Docsify
  •   

09_SpringBoot+Thymeleaf

参考资料:https://www.springcloud.cc/spring-boot.html 中文文档2:https://felord.cn/_doc/_springboot/2.1.5.RELEASE/_book/index.html 1. Thymeleaf 模板引擎Thymeleaf :Java 模板引擎,模板格式.html Freemarker、JSP差不多 文本:直接输出的的
2018-06-20
08_框架技术 > 04_SpringBoot
#SpringBoot #模板引擎 #Thymeleaf

10_SpringBoot+Quartz

参考资料:https://www.springcloud.cc/spring-boot.html 中文文档2:https://felord.cn/_doc/_springboot/2.1.5.RELEASE/_book/index.html 1. 导入依赖1234<dependency> <groupId>org.springframework.boot</g
2018-06-20
08_框架技术 > 04_SpringBoot
#SpringBoot #Quartz

11_SpringBoot+EasyExcel

参考资料:https://www.springcloud.cc/spring-boot.html 中文文档2:https://felord.cn/_doc/_springboot/2.1.5.RELEASE/_book/index.html EasyExcel官网:https://alibaba-easyexcel.github.io/index.html 迁移到新网站:https://www
2018-06-20
08_框架技术 > 04_SpringBoot
#SpringBoot #EasyExcel

12_SpringBoot+Swagger

参考资料:https://www.springcloud.cc/spring-boot.html 中文文档2:https://felord.cn/_doc/_springboot/2.1.5.RELEASE/_book/index.html 1. swagger 简介现在开发,很多采用前后端分离的模式,前端只负责调用接口,进行渲染,前端和后端的唯一联系,变成了API接口。因此,API文档变得越来
2018-06-20
08_框架技术 > 04_SpringBoot
#SpringBoot #Swagger

14_SpringBoot 跨域方案

三种解决方案,任一即可。 1. 跨域过滤器 跨域过滤器:实现 Filter 接口 重写 doFilter() 方法 12345678910111213141516171819202122import org.springframework.stereotype.Component;import javax.servlet.*;import javax.servlet.annotation.We
2018-06-20
08_框架技术 > 04_SpringBoot
#SpringBoot #跨域

13_SpringBoot+Swagger2

参考资料:https://www.springcloud.cc/spring-boot.html 中文文档2:https://felord.cn/_doc/_springboot/2.1.5.RELEASE/_book/index.html 1. 依赖很重要:因为区别于 springMVC 所以依赖的名字和版本要和 springMVC 区别开来 12345678910<dependenc
2018-06-20
08_框架技术 > 04_SpringBoot
#SpringBoot #Swagger

02-Spring AOP应用

参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ AOP 提供了一种面向切面操作的扩展机制,通常这些操作是与业务无关的,在实际应用中,可以实现:日志处理、事务控制、参数校验和自定义注解等功能。 一、日志处理1.1 普通日志处理在调试程序时,如果需要在执行方法前打印方法参数,或者在执行方法后打印方法返回结果,可
2018-06-20
08_框架技术 > 02_Spring > 03_AOP
#Spring #AOP

02-Spring Transaction 事务

参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 1. Spring 事务特性事务 : 是逻辑上一组操作,要么全都成功,要么全都失败.事务特性 : ACID 原子性 : 事务不可分割 一致性 : 事务执行的前后,数据完整性保持一致 隔离性 : 一个事务执行的时候,不应该受到其他事务的打扰 持久性 : 一旦结
2018-06-02
08_框架技术 > 02_Spring > 04_Data
#Spring #事务

01-Spring AOP

参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 1. AOP 原理AOP Aspect Oriented Programing,面向切面编程。AOP 采取横向抽取机制,取代了传统纵向继承体系重复性代码(性能监视、事务管理、安全检查、缓存)Spring AOP 使用纯 Java 实现,不需要专门的编译过程和
2018-06-01
08_框架技术 > 02_Spring > 03_AOP
#Spring #AOP

02-Spring 注解配置 Bean

参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 1. 注解配置 Bean写一个 SpringConfig.java 作为注解配置类,它的作用和 bean.xml 是一样的。以 jdbc 为例。 Spring中的新注解: @Configuration 作用:指定当前类是一个配置类 注意:当配置类作为 A
2018-05-31
08_框架技术 > 02_Spring > 02_IoC
#Spring #Bean
…2122232425262728293031…
CSDN GitHub Hexo Fluid
总访问量(PV) 次, 总访客数(UV) 人