You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
782 B

package com.project;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
@EnableScheduling
@MapperScan({
"com.project.*.mapper"})
@EntityScan("com.project.*.domain.entity")
@EnableJpaRepositories("com.project.logistics.repository") // 只扫 JPA Repository
public class AutoLogisticsApplication {
public static void main( String[] args ) {
SpringApplication.run(AutoLogisticsApplication.class , args);
}
}