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

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.
主站蜘蛛池模板: 当阳市| 宁波市| 桐柏县| 醴陵市| 乳山市| 元朗区| 孟津县| 宁武县| 永胜县| 东山县| 安龙县| 吉林市| 营山县| 彩票| 英德市| 永丰县| 八宿县| 论坛| 万源市| 昭觉县| 佳木斯市| 兴业县| 太保市| 辽宁省| 巴东县| 利川市| 柳江县| 德阳市| 嘉禾县| 龙南县| 巨鹿县| 泉州市| 尉氏县| 上饶县| 大石桥市| 文山县| 西乌珠穆沁旗| 双辽市| 昭苏县| 赣州市| 东阿县|