| package org.apache.airavata.mft.singleservice; |
| |
| import org.springframework.boot.SpringApplication; |
| import org.springframework.boot.autoconfigure.SpringBootApplication; |
| import org.springframework.boot.autoconfigure.domain.EntityScan; |
| import org.springframework.context.annotation.ComponentScan; |
| import org.springframework.context.annotation.Import; |
| import org.springframework.context.annotation.PropertySource; |
| import org.springframework.data.jpa.repository.config.EnableJpaRepositories; |
| |
| @SpringBootApplication() |
| @ComponentScan(basePackages = {"org.apache.airavata.mft.*", "org.apache.airavata.mft.api.*", "org.apache.airavata.mft.api.handler"}) |
| @EntityScan(basePackages = {"org.apache.airavata.mft.resource.server.backend.sql.entity"}) |
| @EnableJpaRepositories(basePackages = {"org.apache.airavata.mft.resource.server.backend.sql.repository", |
| "org.apache.airavata.mft.secret.server.backend.sql.repository"}) |
| @PropertySource(value = "classpath:api-service-application.properties") |
| @PropertySource(value = "classpath:resource-service-application.properties") |
| @PropertySource(value = "classpath:secret-service-application.properties") |
| @Import(org.apache.airavata.mft.api.AppConfig.class) |
| public class SingleServiceApplication { |
| public static void main(String[] args) { |
| SpringApplication.run(SingleServiceApplication.class, args); |
| } |
| |
| } |