fix: 修复mybatis的xml文件路径错误导致无法正确加载的问题
This commit is contained in:
parent
e0e4150e23
commit
3d4676dd3e
|
|
@ -9,7 +9,8 @@ import org.springframework.data.mongodb.repository.config.EnableMongoRepositorie
|
|||
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.nflg.mobilebroken.repository.mapper")
|
||||
@ComponentScan(basePackages = {"com.nflg.mobilebroken"})
|
||||
@ComponentScan(basePackages = {"com.nflg.mobilebroken.repository.service","com.nflg.mobilebroken.cfs.controller"
|
||||
,"com.nflg.mobilebroken.starter"})
|
||||
@EnableMongoRepositories(basePackages = "com.nflg.mobilebroken.repository.service")
|
||||
@EnableDiscoveryClient
|
||||
public class CfsApplication {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import java.time.LocalDateTime;
|
|||
public class MysqlDataSourceConfig {
|
||||
|
||||
static final String PACKAGE = "com.nflg.mobilebroken.repository.mapper";
|
||||
static final String MAPPER_LOCATION = "classpath*:mapper/master/**/*.xml";
|
||||
static final String MAPPER_LOCATION = "classpath*:mapper/*.xml";
|
||||
|
||||
/**
|
||||
* 主数据源地址
|
||||
|
|
|
|||
Loading…
Reference in New Issue