fixed:启动报Mapper找不到

pull/145/head
jacklicn 2019-10-17 17:28:22 +08:00 committed by GitHub
parent 5693f178c6
commit 4b7f66d7d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
@ -13,6 +14,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
*/ */
@EnableAsync @EnableAsync
@SpringBootApplication @SpringBootApplication
@ComponentScan(basePackages = { "me.zhengjie.modules.system.service.mapper" })
@EnableTransactionManagement @EnableTransactionManagement
public class AppRun { public class AppRun {