Spring的加载方式
Spring有四种加载方式
一、ClassPathXMLApplicationContext
classPath中的xml启动方式
二、AnnotationConfigurationApplicationContext
注解扫描的启动方式
三、FileSystemXMLApplicationContext
文件系统的xml启动方式
四、EmbeddedWebApplicationContext
SpringBoot使用的方式
Spring有四种加载方式
一、ClassPathXMLApplicationContext
classPath中的xml启动方式
二、AnnotationConfigurationApplicationContext
注解扫描的启动方式
三、FileSystemXMLApplicationContext
文件系统的xml启动方式
四、EmbeddedWebApplicationContext
SpringBoot使用的方式