Spring-study(目录结构+pom.xml的父工程配置)

看完以下内容接着看:https://blog.csdn.net/lgz0921/article/details/104574002

接下来的spring用到的数据库是Mybatis的数据库,毕竟要整合呀!

目录结构:

Spring-study(目录结构+pom.xml的父工程配置)_第1张图片

pom.xml



    4.0.0

    
        UTF-8
    

    org.example
    spring-study
    pom
    1.0-SNAPSHOT
    
        spring-01-ioc1
        spring-02-hellospring
        spring-03-ioc2
        spring-04-di
        spring-05-Autowired
        spring-06-anno
        spring-07-appconfig
        spring-08-proxy
        spring-09-aop
        spring-10-mybatis
        spring-11-transaction
    

    
        
        
            org.springframework
            spring-webmvc
            5.2.3.RELEASE
        
        
            junit
            junit
            4.12
        
    


    
    
        
            
                src/main/resources
                
                    **/*.properties
                    **/*.xml
                
                true
            
            
                src/main/java
                
                    **/*.properties
                    **/*.xml
                
                true
            
        
    

node.md只简单写了一点知识点,不需要看。

## 常用依赖
```xml
   
        
        
            org.springframework
            spring-webmvc
            5.2.3.RELEASE
        
        
            junit
            junit
            4.12
        
    
```
## 注解说明
- @Autowired:自动装配通过类型、名字
    如果Autowired不能唯一自动装配,则需要通过@Qualifier(value="xxx)
- @Nullable:字段标记了这个注解,说明这个字段可以为null
- @Resource:自动装配通过名字、类型
- @Component:组件,放在类上,说明这个类被Spring管理了,就是bean!

 

你可能感兴趣的:(Spring)