ai.platon.pulsar.rest.api.ApiApplication.kt Maven / Gradle / Ivy
The newest version!
package ai.platon.pulsar.rest.api
import ai.platon.pulsar.skeleton.crawl.CrawlLoops
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.ImportResource
@SpringBootApplication(
exclude = [MongoAutoConfiguration::class, MongoDataAutoConfiguration::class]
)
@ImportResource("classpath:rest-beans/app-context.xml")
@EntityScan("ai.platon.pulsar.rest.api.entities")
@ComponentScan(
"ai.platon.pulsar.boot.autoconfigure",
"ai.platon.pulsar.rest.api"
)
class ApiApplication(
/**
* Activate crawl loops
* */
val crawlLoops: CrawlLoops
)