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

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.
主站蜘蛛池模板: 金寨县| 申扎县| 沐川县| 绥芬河市| 旅游| 夏邑县| 赫章县| 革吉县| 临夏县| 万盛区| 黔南| 宾川县| 皋兰县| 黄陵县| 商丘市| 方城县| 宜宾市| 昆山市| 阜城县| 尚义县| 洛南县| 泸西县| 上饶市| 通河县| 白朗县| 固阳县| 克拉玛依市| 右玉县| 太原市| 大庆市| 都江堰市| 衡阳县| 保定市| 天柱县| 三河市| 枝江市| 封丘县| 乐都县| 兰考县| 南丹县| 澄城县|