Spring-Boot:further occurrences of Parameter errors will be logged at DEBUG level.
百度一大堆都说 是检查pom.xml 中是否有重复的包,检查之后无果,怀疑是找不到controller的包。
在Application 的启动类中添加了指定扫描 controller包地址的注解,问题解决。
@SpringBootApplication
@ComponentScan(basePackages = {"com.winter.controller","test"})//扫描注解controller,可以添加多个包地址,
@MapperScan("com.winter.mapper")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}