Commit 7690affd authored by duanruiming's avatar duanruiming

[update] 扫描子模块下包目录

parent e8ac11d3
......@@ -10,12 +10,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @author
*/
@SpringBootApplication(scanBasePackages = "net.wanji.opt")
@MapperScan(basePackages = "net.wanji.opt.dao.mapper")
@SpringBootApplication(scanBasePackages = {"net.wanji.opt", "net.wanji.databus"})
@MapperScan(basePackages = {"net.wanji.opt.dao.mapper", "net.wanji.databus.dao.mapper"})
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
//@EnableDiscoveryClient
public class SignalOptimizeApplication {
public static void main(String[] args) {
......
......@@ -16,7 +16,7 @@ service:
mybatis:
type-aliases-package: net.wanji.*.model
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml
mapper-locations: classpath*:mapper/*.xml,classpath*:mapper/*/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
......@@ -35,7 +35,7 @@ pagehelper:
params: count=countSql
mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml
mapper-locations: classpath*:mapper/*.xml,classpath*:mapper/*/*.xml
typeAliasesPackage: net.wanji.opt.po.base
check-config-location: true
configuration:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment