因為你的Controller沒有掃描到,注意加注解@Controller的前提,然後在配置檔案
<context:component-scan base-package="controller1"></context:component-scan>
去掃描該Controller所在包
因為你的Controller沒有掃描到,注意加注解@Controller的前提,然後在配置檔案
<context:component-scan base-package="controller1"></context:component-scan>
去掃描該Controller所在包