今天准备玩一下Spring boot,工程搭建好后,但是hello world一直出不来,404错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
捉摸了半天,原因是Spring boot的启动类application的位置问题
DemoApplication就是启动类,它必须放在和有注解的类的同一目录或者父目录才能扫描到注解类。