Commit 7690affd authored by duanruiming's avatar duanruiming

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

parent e8ac11d3
...@@ -10,12 +10,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -10,12 +10,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
* @author * @author
*/ */
@SpringBootApplication(scanBasePackages = "net.wanji.opt") @SpringBootApplication(scanBasePackages = {"net.wanji.opt", "net.wanji.databus"})
@MapperScan(basePackages = "net.wanji.opt.dao.mapper") @MapperScan(basePackages = {"net.wanji.opt.dao.mapper", "net.wanji.databus.dao.mapper"})
@EnableTransactionManagement @EnableTransactionManagement
@EnableScheduling @EnableScheduling
@EnableAsync @EnableAsync
//@EnableDiscoveryClient
public class SignalOptimizeApplication { public class SignalOptimizeApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -16,7 +16,7 @@ service: ...@@ -16,7 +16,7 @@ service:
mybatis: mybatis:
type-aliases-package: net.wanji.*.model type-aliases-package: net.wanji.*.model
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml mapper-locations: classpath*:mapper/*.xml,classpath*:mapper/*/*.xml
configuration: configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
...@@ -35,7 +35,7 @@ pagehelper: ...@@ -35,7 +35,7 @@ pagehelper:
params: count=countSql params: count=countSql
mybatis-plus: mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml mapper-locations: classpath*:mapper/*.xml,classpath*:mapper/*/*.xml
typeAliasesPackage: net.wanji.opt.po.base typeAliasesPackage: net.wanji.opt.po.base
check-config-location: true check-config-location: true
configuration: 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