AdminApplication.java
1.37 KB
package com.glsx.usedcar;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.summerframework.orm.BaseRepositoryFactoryBean;
@EnableJpaRepositories(basePackages = {"com.glsx.usedcar.module", "org.summerframework"}, repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)
@EnableAsync
@EnableCaching
@EntityScan(basePackages = {"com.glsx.usedcar", "org.summerframework"})
@ComponentScan(basePackages = {"com.glsx.usedcar", "org.summerframework.core", "org.summerframework.orm", "org.summerframework.web",
"org.summerframework.cache", "org.summerframework.storage", "org.summerframework.log", "org.summerframework.security", "com.sayalala"})
@SpringBootApplication
@EnableScheduling
@EnableJpaAuditing
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class, args);
}
}