mirror of https://github.com/elunez/eladmin
add sport
parent
28f6c90381
commit
94c2579a4d
|
@ -21,9 +21,11 @@ import me.zhengjie.annotation.rest.AnonymousGetMapping;
|
|||
import me.zhengjie.utils.SpringBeanHolder;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
||||
import org.springframework.boot.context.ApplicationPidFileWriter;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
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.transaction.annotation.EnableTransactionManagement;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
@ -38,8 +40,10 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
@EnableAsync
|
||||
@RestController
|
||||
@Api(hidden = true)
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(scanBasePackages = {"me.zhengjie", "com.srr"})
|
||||
@EnableTransactionManagement
|
||||
@EnableJpaRepositories(basePackages = {"me.zhengjie.**.repository", "com.srr.repository"})
|
||||
@EntityScan(basePackages = {"me.zhengjie.**.domain", "com.srr.domain"})
|
||||
@EnableJpaAuditing(auditorAwareRef = "auditorAware")
|
||||
public class AppRun {
|
||||
|
||||
|
|
Loading…
Reference in New Issue