Spring的加载方式

Spring有四种加载方式

一、ClassPathXMLApplicationContext
classPath中的xml启动方式

二、AnnotationConfigurationApplicationContext
注解扫描的启动方式

三、FileSystemXMLApplicationContext
文件系统的xml启动方式

四、EmbeddedWebApplicationContext
SpringBoot使用的方式

posted @ 2024-06-15 19:53  vello  阅读(31)  评论(0)    收藏  举报