我刚开始使用Spring boot,并了解到使用Spring boot时,它提供了“默认值”(约定优于配置),因此几乎可以满足80%的依赖项。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>考虑到上面的spring-boot-starter-parent版本,我如何知道spring boot将为我的项目提供什么默认设置?有没有办法找到它要选择的默认值?
发布于 2018-08-29 02:53:28
Spring boot有所谓的启动器。starter是一组方便的依赖项,您可以将它们包含在项目中,以帮助实现某些目标。
启动启动器包括自动配置支持、日志记录和YAML。
有针对安全、数据(jpa)、mongodb等的启动器。
你可以在这里看一下:https://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/reference/htmlsingle/#using-boot-starter
https://stackoverflow.com/questions/52064468
复制相似问题