com.dream.DreamApplication Maven / Gradle / Ivy
package com.dream;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplication
@ComponentScan(basePackages = "com.dream")
@EntityScan(basePackages = "com.dream.models")
@EnableJpaRepositories(basePackages = "com.dream.repositories")
@EnableAutoConfiguration
@ConfigurationPropertiesScan
public class DreamApplication {
public static void main(String[] args) {
SpringApplication.run(DreamApplication.class, args);
}
}