摘要:
idea中启动spring boot,遇见该问题。 原因: 找不到url路径! 为什么?: @SpringBootApplication中的@ComponentScan扫描的是该类所在包和子包下的文件,所以Controller可能没有被扫到。 解决方法: 将Application放在外面 如上图所示 阅读全文
摘要:
idea中启动spring boot,遇见该问题。 原因: 找不到url路径! 为什么?: @SpringBootApplication中的@ComponentScan扫描的是该类所在包和子包下的文件,所以Controller可能没有被扫到。 解决方法: 将Application放在外面 如上图所示 阅读全文
|