We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97abc4 commit bc6c12eCopy full SHA for bc6c12e
src/main/java/life/CommunityApplication.java
@@ -4,11 +4,12 @@
4
* Spring Boot 主函数入口
5
*/
6
7
+import org.mybatis.spring.annotation.MapperScan;
8
import org.springframework.boot.SpringApplication;
9
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.annotation.ComponentScan;
10
11
-@SpringBootApplication
+@SpringBootApplication //(scanBasePackages = "life.majiang.community.mapper")
12
+@MapperScan(value = "life.majiang.community.mapper")
13
public class CommunityApplication {
14
public static void main(String[] args) {
15
SpringApplication.run(CommunityApplication.class, args);
0 commit comments