21 lines
851 B
Kotlin
21 lines
851 B
Kotlin
package com.continental.retailapp
|
|||
|
|
|
||
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||
|
|
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
|
||
|
|
import org.springframework.boot.runApplication
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 唯一的可部署单元(模块化单体,见 01-project-structure.md)。
|
||
|
|
*
|
||
|
|
* `scanBasePackages` 写到 `com.continental.retailapp` 这一层:各 domain 和 platform 模块
|
||
|
|
* 的包名都在它下面,一次扫全。**模块边界不靠扫描范围来保证**——那是 Gradle 依赖图
|
||
|
|
* 加上 ArchUnit 的职责,Spring 这里只管把 bean 找齐。
|
||
|
|
*/
|
||
|
|
@SpringBootApplication(scanBasePackages = ["com.continental.retailapp"])
|
||
|
|
@ConfigurationPropertiesScan("com.continental.retailapp")
|
||
|
|
class BootstrapApplication
|
||
|
|
|
||
|
|
fun main(args: Array<String>) {
|
||
|
|
runApplication<BootstrapApplication>(*args)
|
||
|
|
}
|