经阅读springboot的官方文档,springboot提供了极简便的自动配置–就是可以根据依赖的jar猜测你可能需要的配置。
摘自springboot文档 chapter 16. 16. Auto-configuration Spring Boot auto-configuration attempts to automatically configure your Spring application based on the jar dependencies that you have added. For example, If HSQLDB is on your classpath, and you have not manually configured any database connection beans, then we will auto-configure an in-memory database.
新闻热点
疑难解答