在介绍spring的启动之前,先来说下启动过程中使用到的几个类 基本组件 1、BeanFactory:spring底层容器,定义了最基本的容器功能,注意区分FactoryBean 2、ApplicationContext:扩展于BeanFactory,拥有更丰富的功能。例如:添加事件发布机制、父子级 ...
                            
                            
                                分类:
编程语言   时间:
2021-05-03 12:18:32   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    自己学习用,待补充! 工程结构: pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS ...
                            
                            
                                分类:
其他好文   时间:
2021-05-03 12:04:13   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    自己学习用,待补充! pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema- ...
                            
                            
                                分类:
其他好文   时间:
2021-05-03 12:02:46   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    自己学习用,待补充! 对比 LNC模块,就改一下 Controller (注解要换): @Controller public class TccController { @Autowired ProducerInfoMapper producerInfoMapper; @Autowired Rest ...
                            
                            
                                分类:
其他好文   时间:
2021-05-03 12:02:17   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    自己学习用,待补充! 对比 LNC模块,就改一下 Controller (注解要换): @Controller public class TccController { @Autowired ConsumerInfoMapper consumerInfoMapper; private static  ...
                            
                            
                                分类:
其他好文   时间:
2021-05-03 12:01:21   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    抽取为接口后, springboot事务开启,不在报错。 @Transactional public interface DescriptionService { public Description addDescription(Description description) ; 启动类 @Sp ...
                            
                            
                                分类:
其他好文   时间:
2021-04-30 12:36:32   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    一、InitializingBean接口说明InitializingBean接口为bean提供了属性初始化后的处理方法,它只包括afterPropertiesSet方法,凡是继承该接口的类,在bean的属性初始化后都会执行该方法。 /* * Copyright 2002-2018 the origi ...
                            
                            
                                分类:
编程语言   时间:
2021-04-30 12:07:56   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1. Spring 特点 Spring 主要有如下特点: 轻量级:Spring 是非侵入式,其中的对象不依赖 Spring 的特定类; 控制反转(IoC):通过 IoC,促进了低耦合,一个对象依赖的其他对象通过被动的方式传递进来,而不用该对象主动创建或查找; 面向切面(AOP):支持面向切面编程,将 ...
                            
                            
                                分类:
编程语言   时间:
2021-04-30 11:55:44   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                今日内容简介 聚合查询(聚合函数的使用)aggregate max、min、sum、count、avg 分组查询(group by的使用)annotate F与Q查询 django中如何开启事务 orm中常用字段及参数 数据库查询优化(only与defer、select_related与prefet ...
                            
                            
                                分类:
其他好文   时间:
2021-04-29 12:08:18   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    SpringSecurity 功能 spring security 的核心功能主要包括: 认证 (你是谁) 授权 (你能干什么) 攻击防护 (防止伪造身份) Spring Security是针对Spring项目的安全框架,也是Spring Boot底层安全模块默认的技术选型,他可以实现强大的Web安 ...
                            
                            
                                分类:
编程语言   时间:
2021-04-29 11:54:47   
                                阅读次数:
0