随笔分类 - spring
-
spring -->事务
摘要:先配置事务才能进行bean的使用 为什么需要配置事务?、 阅读全文
-
spring-->整合mybatis
摘要:整合mybatis需要导入的依赖: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope></dependency><depend 阅读全文
-
spring-->AOP
摘要:使用AOP植入,需要导入依赖包 <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver --><dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjwe 阅读全文
-
spring-->代理模式
摘要:为什么要学习静态代理? //因为静态代理就是springAOP的底层 //代理模式:静态代理,动态代理 //静态代理 流程:1.接口 也就是图中的租房 2.真实角色 房东 3.代理角色 中介 4.客户端 我 优缺点: 第三步:动态生成代理类 阅读全文
-
spring--> 使用javaconfig实现配置
摘要:@configuration 就是一个配置类,和beans.xml是一样的 阅读全文
-
spring 注解开发
摘要: 阅读全文
-
spring 注解支持及自动装配
摘要: 阅读全文
-
spring 配置说明
摘要: 阅读全文
-
spring 创建helloworld过程
摘要:依赖: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst 阅读全文
-
spring 简介
摘要:依赖包: <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --><dependency> <groupId>org.springframework</groupId> <artifactId>spri 阅读全文