SpringBoot学习总结(二):默认配置原理

配置原理 1、回顾历史 springboot的默认配置方式和我们之前的配置方式不太一样,没有任何的xml,以前,我们要配置一个数据库连接池,会在springContext.xml中这样配: <!-- 引入外部的属性资源文件 --> <context:property-placeholder location="classpath:jdbc.properties" /> <!-- 配置连接池 -->
相关文章
相关标签/搜索