在启动类添加:@SpringBootApplication(scanBasePackages={“com.example.chart2.controller”,“com.example.chart2.service”})
包含你所需要扫描到的包

在启动类添加:@SpringBootApplication(scanBasePackages={“com.example.chart2.controller”,“com.example.chart2.service”})
包含你所需要扫描到的包
上一篇 springboot-枚举enumration的应用
下一篇 用springboot框架添加thymeleaf时报错Cannot resolve org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE