从0开始学习SpringBoot-第3天

13.2.3 Changing the Java version

The spring-boot-starter-parent chooses fairly conservative Java compatibility. If you want to follow our recommendation and use a later Java version you can add a java.version property:

spring-boot-starter-parent选择了相对稳定的java版本,如果你想使用更新的java版本的话,可以设置如下属性

<properties>
    <java.version>1.8</java.version>
</properties>

13.2.4 Using the Spring Boot Maven plugin
Spring Boot includes a Maven plugin that can package the project as an executable(可执行的) jar. Add the plugin to your section if you want to use it:
Spring Boot 包含一个maven插件,可以把项目打包成一个可执行文件。如果你想使用的话,添加这个插件到你的插件块

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

Gradle和Ant略

13.5 Starter POMs

Starter POMs are a set of convenient dependency descriptors(描述符号) that you can include in your application. You get a one-stop-shop for all the Spring and related technology that you need, without having to hunt through sample code and copy paste loads of dependency descriptors. For example, if you want to get started using Spring and JPA for database access, just include the spring-boot-starter-data-jpa dependency in your project, and you are good to go.

The starters contain a lot of the dependencies that you need to get a project up and running quickly and with a consistent, supported set of managed transitive(及物的) dependencies.

你可能感兴趣的:(java)