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
SpringMVC Demo 参考资料:https://spring-mvc.linesh.tw/ 1. SpringMVC 概述SpringMVC 是一种基于 Java 实现 MVC 设计模型的请求驱动类型的轻量级 Web 框架。它和 Struts2 都属于表现层的框架,属于 Spring FrameWork 的后续产品,Spring MVC 分离了控制器、模型对象、过滤器以及处理程序对象的角色,这种分离让它们更容易进行定 2018-06-20 08_框架技术 > 03_SpringMVC #SpringMVC #架构
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
Spring Transaction 事务 参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 1. Spring 事务特性事务 : 是逻辑上一组操作,要么全都成功,要么全都失败.事务特性 : ACID 原子性 : 事务不可分割 一致性 : 事务执行的前后,数据完整性保持一致 隔离性 : 一个事务执行的时候,不应该受到其他事务的打扰 持久性 : 一旦结 2018-06-02 08_框架技术 > 02_Spring > 04_Data #Spring #事务
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
Spring 整合 junit 参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 1. spring-test依赖提供所需的依赖 spring-test 12345<dependency> <groupId>org.springframework</groupId> <artifactId>s 2018-05-31 08_框架技术 > 02_Spring > 02_IoC #Spring #junit
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
Spring JdbcTemplate 参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 在 Spring 中提供了一个可以操作数据库的对象 org.springframework.jdbc.core.JdbcTemplate,对象封装了 jdbc 技术,JDBC 的模板对象与 DBUtils 中的 QueryRunner 非常相似。 1. Jdb 2018-05-31 08_框架技术 > 02_Spring > 04_Data #Spring #JDBC
Spring IoC与Bean 参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ 1. 容器容器(container)是 Spring 框架的核心,它管理着 Spring 应用中 bean 的创建、 配置和管理,负责对象的整个生命周期。 1.1 容器实现Spring 自带两种不同类型容器实现,主要使用 ApplicationContext。 2018-05-30 08_框架技术 > 02_Spring > 01_Core #Spring #IoC #Bean
Spring 概述 参考资料:https://lfvepclr.gitbooks.io/spring-framework-5-doc-cn/content/ Spring 是一个开源的 Java EE 开发框架。 Spring 框架的核心功能可以应用在任何 Java 应用程序中,但对 Java EE 平台上的 Web 应用程序有更好的扩展性。Spring 框架的目标是使得 Java EE 应用程序的开发更加简捷,通 2018-05-30 08_框架技术 > 02_Spring > 01_Core #Spring #简述