mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 08:29:19 +08:00
refactor: 让目录结构变得优雅一点
This commit is contained in:
+5
-4
@@ -1,5 +1,6 @@
|
||||
package top.xyquan.ecomdmbbackend;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -7,10 +8,10 @@ import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableAsync
|
||||
@MapperScan({
|
||||
"top.xyquan.ecomdmbbackend.modules.*.mapper",
|
||||
"top.xyquan.ecomdmbbackend.modules.*.*.mapper"
|
||||
})
|
||||
@MapperScan(
|
||||
basePackages = "top.xyquan.ecomdmbbackend.modules",
|
||||
annotationClass = Mapper.class
|
||||
)
|
||||
public class EComDMBBackendApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user