官术网_书友最值得收藏!

Build

The build definition is composed of several elements under the build tag; for example, the source and test folders for our project, so the compiler can find them.

The different Maven plugins will be configured within the plugins tag.

Mainly, we can see two plugins included, spring-boot Maven plugin, as no version is specified it will be determined by the default version on the BOM, and the Kotlin Maven plugin to build our Kotlin code. When we compile, we can see a dependency for the compiler plugin is included called all-open, that is required by Spring.

In Kotlin, all classes and members are final by default. This plugin allows that when we use some specific annotations those member are open, so they can be modified, this is required by the @Autowired annotation that will be discussed further in this chapter.
主站蜘蛛池模板: 塔河县| 洪洞县| 岳阳县| 石棉县| 崇明县| 黔江区| 襄垣县| 鄂托克前旗| 易门县| 新干县| 黄浦区| 桃园市| 乃东县| 濮阳市| 昌宁县| 阳春市| 运城市| 枝江市| 湘潭县| 交口县| 上饶市| 清水县| 汤阴县| 梅河口市| 兴业县| 三江| 鸡西市| 台前县| 芒康县| 沙雅县| 石棉县| 加查县| 平山县| 宜昌市| 长宁县| 哈巴河县| 安徽省| 涿州市| 边坝县| 聂荣县| 新沂市|