All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy