CS

Java后端学习之路

Posted by Sagiring on 2024-05-20
Estimated Reading Time 1 Minutes
Words 142 In Total
Viewed Times

Java后端学习之路

Java后端学习之路

Spring

SpringBean

截屏 2024-05-14 18.21.07

基于xml的Spring应用

3f042f18487dda0881a6643c2955823
0e04a1254dd9d7b1b1eb6aced92df19
cd575e7b464262a256736be5e3e5631

基于注解的Spring应用

9b5e5770d0d258c7f7b4102cc7fd05c
0fd294e0498978804923dbba21eb72c
504999b5b054aa453df6a524cf80d7d
ca012f18d3b27020d162e9fa60925c0

/**
 * SpringConfig
 */
@Configuration

// <context:component-scan base-package="com.sagiring" />
@ComponentScan({"com.sagiring"})

// <context:property-placeholder location="classpath:jdbc.properties"/>
@PropertySource("classpath:jdbc.properties")

// @Import({MyImportSelector.class})
// @Import({MyImportBeanDefinitionRegistrar.class})

// @MapperScan("com.sagiring.mapper")
@MyMapperScan
public class SpringConfig {

    
}

AOP

9cbc236501ec74c50346cf8ea15db52
image-20240517160939277
image-20240517160949314

代理

JDK

image-20240517161128824

CGlib

image-20240517161108986

事务控制

image-20240517190513971
image-20240517190540828
image-20240517190553391
image-20240517190608388

Spring整合web环境

Javaweb三大组件

MVC

...

SpringBoot