diff --git a/src/main/java/cn/com/tenlion/BusinessCardApplication.java b/src/main/java/cn/com/tenlion/BusinessCardApplication.java index d4cf8b0..2aca092 100644 --- a/src/main/java/cn/com/tenlion/BusinessCardApplication.java +++ b/src/main/java/cn/com/tenlion/BusinessCardApplication.java @@ -1,11 +1,15 @@ package cn.com.tenlion; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; +import springfox.documentation.swagger2.annotations.EnableSwagger2; +@EnableSwagger2 @SpringBootApplication @ComponentScan("cn.com") +@MapperScan({"cn.com.**.dao"}) public class BusinessCardApplication { public static void main(String[] args) {