• 存量时代的面经


    spring-series,感谢这个项目的作者,还有springboot_learn 这个项目
    Spring,

    说来惭愧,接触spring 已经接近十年了
    通过这个项目,我把spring重写的学习了一遍

    1,早上先debug 的一个项目的源码是
    springboot_security

    在这里插入代码片
    
    • 1
    /**
     *
     *
     : Creating filter chain:
     org.springframework.security.web.util.matcher.AnyRequestMatcher@1,
     [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@41bf2079,
     org.springframework.security.web.context.SecurityContextPersistenceFilter@fbb6585,
     org.springframework.security.web.header.HeaderWriterFilter@172517f6,
     org.springframework.security.web.csrf.CsrfFilter@ccd2a71,
     org.springframework.security.web.authentication.logout.LogoutFilter@675833ee,
     org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@5048a13b,
     org.springframework.security.web.savedrequest.RequestCacheAwareFilter@67251ed6,
     org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1f8bc745,
     org.springframework.security.web.authentication.AnonymousAuthenticationFilter@23d9cf01,
     org.springframework.security.web.session.SessionManagementFilter@39567053,
     org.springframework.security.web.access.ExceptionTranslationFilter@49c08929,
     org.springframework.security.web.access.intercept.FilterSecurityInterceptor@23e7c50]
     2023-09-01 09:38:20.187  INFO 3841 --- [  restartedMain] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5c2093bf: startup date [Fri Sep 01 09:38:14 CST 2023]; root of context hierarchy
     *
     *
     */
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21

    长长的的调用链
    刚好前几天看了设计模式
    是知乎上
    如何用「设计模式」制作珍珠奶茶?
    写的真的很棒

    然后,早上又搜spring源码怎么学习
    就有bean的生命周期
    springboot的启动过程

    然后说spring是一个百万行的大框架了
    现在要先看 mybatis的 源码

    MyBatis源码用了哪些设计模式?

    挺好的

    然后还是先看了看spring security 的
    还有 spring schedule的
    很棒的

    注意不要抓细节

    然后还是回到
    spring-series
    这个项目
    1,加载bean的方式
    xml 和注解
    ClassPathXmlApplicationContext
    AnnotationConfigApplicationContext
    2围绕bean的配置 scope啊
    3.注解
    4.代理
    java动态代理 invoke
    和cglib 代理 intercept
    5.反射

    到这想到了拦截器和过滤器,妈妈咪呀,我可接触的太早了,现在才想起来

    一个是知道上下文的(拦截,就像必须知道拦截谁)
    一个是不知道上下文的(过滤器,我就傻傻的过滤)

    大体的上面的组成了 IOC

    6.AOP 就是拼命的玩动态代理

    7.那就是spring的 事务

    先是数据库的事务
    再接着是编码事务
    最后是声明事务

    再最后就是框架的 分布式事务

    8.spring 的细节就是这些

    然后就需拼命的抓细节了

    常用注解

    其实把现在,卷个什么劲,java生态这么繁荣
    要啥不是现成的
    再哪里拼命的卷的结果是什么

    其实归根结底就是学院派和放养派的在那里占地盘

    何必呢,

    算法不要非研究生的
    就那些聚类,分类,降为,回归,有几个不是调用包派。
    疯狂的做平台锁定流量

    据说,现在好像开始在软件研发流程上拼命卷了
    单元测试,

    但凡组里有三个大项目,你们还用写单元测试吗。准备向日本软开学习了。

    互联网软开,企业应用软开, 那些为了屁股放的稳一些,不都在争媚

    存量时代,资金下不来,资本家还有 证 肤的钱都没有开源的方向,只能节流了

    但,基于兴趣还是要找一个方向发展,不要轻易的被改变节奏。

  • 相关阅读:
    梯度下降法
    flink-sql所有语法详解-1.15
    在android中使用java反射机制的利弊分别是那些?与导入包名类名,androidmk追加对应jar包相比,二者差异是什么?
    《代码随想录》刷题笔记——链表篇【java实现】
    腾讯mini项目-【指标监控服务重构】2023-08-29
    java绘制心形爱心
    RocketMQ 系列(二) 环境搭建
    【​毕业季·进击的技术er​】--分享自己的经历与经验
    制造业质量管理如何实现数字化?
    类文件结构和初识一些字节码指令
  • 原文地址:https://blog.csdn.net/GP0000968523/article/details/132621917