zoukankan      html  css  js  c++  java
  • Spring中的资源加载

      大家也都知道JDK的类加载器:BootStrap ClassLoader、ExtenSion ClassLoader、Application ClassLoader;也使用了双亲委派模型,主要是为了防止代码注入;

      但是我一直在想那Spring 这么牛逼的框架到底有没有自定义的类加载器呢?

      Spring DefaultResourceLoader 中调用的还是ClassUtil 中的

      ·

      

      

       这是默认的。但是在加载不同类型的文件时,还是有自己的类加载器的,如:

      针对不同的类型,也set了不同的类加载器:

      

  • 相关阅读:
    ThreadLocal
    mysql
    heroku 的用法
    Redis
    disruptor
    RxJava
    TCP
    虚拟机的安装及配置等
    k8s
    Ribbon源
  • 原文地址:https://www.cnblogs.com/yidiandhappy/p/10130190.html
Copyright © 2011-2022 走看看