add sport

pull/882/head
chanhengseang 2025-05-17 18:30:06 -07:00
parent 28f6c90381
commit 94c2579a4d
1 changed files with 5 additions and 1 deletions

View File

@ -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 {