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

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.
主站蜘蛛池模板: 香港 | 翁源县| 青龙| 基隆市| 托克托县| 南郑县| 瓦房店市| 太康县| 德昌县| 南和县| 孟村| 景泰县| 浮梁县| 蒙自县| 姚安县| 江油市| 蓬溪县| 夏津县| 武冈市| 犍为县| 永康市| 阳信县| 扶沟县| 法库县| 威信县| 米泉市| 荥经县| 镇江市| 崇信县| 湖北省| 阳原县| 茂名市| 乌鲁木齐市| 镇原县| 宝清县| 荔波县| 建宁县| 达日县| 永安市| 陆丰市| 镇江市|