springboot3学习
springboot3学习
springboot全局获取请求和响应
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); HttpServletRequest request = requestAttributes.getRequest(); HttpServletResponse response = requestAttributes.getResponse();
springboot监听器
spring.faction文件夹里面
springbootrunlistener监听器
springboot生命周期:

applicationrunner、commandlinerunner

springboot配置文件优先级:环境变量>内的>外的
比如:application-dev>application
config/application>application
springboot自定义start
思想:创建一个start,把业务放到这个start里面,
自定义自动配置类,利用spi机制,放到spring容器中。

mybatix插件,自动生成mapper文件
欢迎关注公众号:

参考学习:https://www.bilibili.com/video/BV1Es4y1q7Bf?p=75&spm_id_from=pageDriver&vd_source=f97080956039c326589b5b26607d960b
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号