From 02d02fb0fc55456404cb2061b2e9fba71c19112e Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Wed, 27 Jan 2021 12:47:26 +0800 Subject: [PATCH] 1 --- src/main/java/cn/com/tenlion/BusinessCardApplication.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {